commit | 455a2a6964ec6408d8f7cb2c629a65a34bc43f08 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Apr 10 16:17:49 2014 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Feb 02 17:47:25 2015 +0900 |
tree | a890f2e92ca123a7ad9b2f8648cf7c25815bddc7 | |
parent | d6d303df685e53f93d2a9e15496d2fc083928b74 [diff] |
Fixes to iproute. 1. Expect NLMSG_DONE after a dump. Otherwise, the NLMSG_DONE message will remain in the socket buffer and the next read on the socket (e.g., the read for an ACK) will get an unexpected message. 2. Properly pad attributes that are not multiples of 4 bytes long. This is useful, for example, for interface names, which are not necessarily a multiple of 4 characters long. Change-Id: I08872ae6b287ec24231fdb4c9e54852c87daca69