Initialize uid and gid fields of NetherPacket 73/129473/11
authorPiotr Sawicki <p.sawicki2@partner.samsung.com>
Tue, 16 May 2017 10:38:34 +0000 (12:38 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Mon, 29 May 2017 12:56:07 +0000 (14:56 +0200)
commit06dfff60dbaba82ad4f172a8d74377cd2a12b8c3
treec6bd587e1cea110bfe84417bbe8887b105962d74
parent3905eb8f1b620dc240c076e3d14a06937b43e0dd
Initialize uid and gid fields of NetherPacket

Under some circumstances, Nether may receive netlink packets which
don't contain uid and gid fields (e.g. IGMP packets generated by
the kernel). Prior to this change, uid and gid fields were not
properly initialized because the nfq_get_uid() and nfq_get_gid()
functions don't modify their second argument in case of an absence
of the UID/GID fields in an input packet.

Change-Id: I712d44a4eccb3603fdf5d8279e7eb1f49e8f34a7
include/nether_Types.h