Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
libnl_2: Update README
Browse files Browse the repository at this point in the history
Change-Id: I8501dc01782fa2cfeabb9d27b9c48caa50b74f37
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
  • Loading branch information
Dmitry Shmidt committed Aug 12, 2011
1 parent 64f17e8 commit 806ed3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libnl_2/README
Expand Up @@ -11,12 +11,16 @@ Netlink Protocol Format (RFC3549)
|Netlink Message |P| Generic Netlink |P| |Netlink Message |P| Generic Netlink |P|
| Header |A| Message Header |A| | Header |A| Message Header |A|
|(struct nlmsghdr)|D|(struct genlmsghdr)|D| |(struct nlmsghdr)|D|(struct genlmsghdr)|D|
+-----------------+-+-------------------+-+ +-----------------+-+-------------------+-+-------------+
|len:4|type:2|flags:2|seq:4 pid:4|cmd:1|ver:1|reserved:2|
+--------------------------------+----------------------+
+-----------------+-+-----------------+-+-----------------+-+-----------------+-+---+ +-----------------+-+-----------------+-+-----------------+-+-----------------+-+---+
|Netlink Attribute|P|Netlink Attribute|P|Netlink Attribute|P|Netlink Attribute|P|...| |Netlink Attribute|P|Netlink Attribute|P|Netlink Attribute|P|Netlink Attribute|P|...|
| #0 Header |A| #0 Payload |A| #1 Header |A| #1 Payload |A| | | #0 Header |A| #0 Payload |A| #1 Header |A| #1 Payload |A| |
| (struct nlattr) |D| (void) |D| (struct nlattr) |D| (void) |D| | | (struct nlattr) |D| (void) |D| (struct nlattr) |D| (void) |D| |
+-----------------+-+-----------------+-+-----------------+-+-----------------+-+---+ +-----------------+-+-----------------+-+-----------------+-+-----------------+-+---+
|len:2(==4+payload)|type:2|payload|pad|
+-------------------------+-------+---+


NETLINK OVERVIEW NETLINK OVERVIEW


Expand All @@ -39,7 +43,7 @@ KNOWN ISSUES
* Not tested for thread safety * Not tested for thread safety


Android.mk Android.mk
* No static library because of netlink cache not implemented and * No dynamic library because of netlink cache not implemented and
not tested for thread safety not tested for thread safety


attr.c attr.c
Expand Down

0 comments on commit 806ed3c

Please sign in to comment.