--- - branch: netbsd-5 date: Sun May 3 13:17:52 UTC 2009 files: - new: 1.8.38.1 old: '1.8' path: src/lib/libc/net/getifaddrs.3 pathrev: src/lib/libc/net/getifaddrs.3@1.8.38.1 type: modified - new: 1.11.12.1 old: '1.11' path: src/lib/libc/net/getifaddrs.c pathrev: src/lib/libc/net/getifaddrs.c@1.11.12.1 type: modified - new: 1.3.2.1 old: '1.3' path: src/sbin/ifconfig/af_link.c pathrev: src/sbin/ifconfig/af_link.c@1.3.2.1 type: modified - new: 1.213.2.2 old: 1.213.2.1 path: src/sbin/ifconfig/ifconfig.c pathrev: src/sbin/ifconfig/ifconfig.c@1.213.2.2 type: modified - new: 1.8.2.1 old: '1.8' path: src/sbin/ifconfig/util.c pathrev: src/sbin/ifconfig/util.c@1.8.2.1 type: modified - new: 1.6.2.1 old: '1.6' path: src/sbin/ifconfig/util.h pathrev: src/sbin/ifconfig/util.h@1.6.2.1 type: modified id: 20090503T131752Z.889e2f7be14c2fac31a4c169d6b1ec3e922e6ebc log: "Pull up following revision(s) (requested by dyoung in ticket #730):\n\tsbin/ifconfig/af_link.c: revisions 1.4 - 1.6\n\tsbin/ifconfig/util.h: revision 1.7\n\tsbin/ifconfig/util.c: revisions 1.10, 1.11\n\tlib/libc/net/getifaddrs.c: revision 1.12\n\tlib/libc/net/getifaddrs.3: revision 1.10\n\tsbin/ifconfig/ifconfig.c: revisions 1.216 - 1.218\nFix indentation: change spaces to tabs.\nUse getnameinfo(3) to render a human-readable link-layer address in the\n'address: ' line, just as we do in the 'link xx:xx:...:xx' line.\nThere's no use casting a socket address to sockaddr_dl, only to cast it\nback to sockaddr, so don't do it.\nCosmetic: add some whitespace for my ease of reading.\nTo make sure that we always print the active link-layer address in the\n'address: ' field, don't treat the first address as the active address,\nbut search the link-layer addresses for the ones flagged IFLR_ACTIVE,\nand print those. Extract a subroutine, print_link_addresses(), for\nprinting link-layer addresses.\nFor non-AF_LINK ifaddrs, ifa_data is NULL. AFAICT, this has always been\nso. Say so in the documentation.\nBring getifaddrs(3) behavior in line with the documentation: the\nifa_data member of every AF_LINK struct ifaddrs points at the\ncorresponding struct if_data. In ifconfig(8), do not try to suppress\nduplicate AF_LINK ifaddrs by checking for a NULL ifa_data.\nDon't copy out two AF_LINK struct ifaddrs for each active link-layer\naddress. getifaddrs(3) used to copy out one ifaddrs for the kernel's\nRTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.\nI suppress the first duplicate with a highly conservative change that\nwastes a little bit of ifaddrs storage. \ The storage is not leaked.\n" module: src subject: 'CVS commit: [netbsd-5] src' unixtime: '1241356672' user: bouyer