#ifndef __NET_NEXTHOP_H #define __NET_NEXTHOP_H #include <linux/rtnetlink.h> #include <net/netlink.h> static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) { return remaining >= sizeof(*rtnh) && rtnh->rtnh_len >= sizeof(*rtnh) && rtnh->rtnh_len <= remaining; } static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, int *remaining) { int totlen = NLA_ALIGN(rtnh->rtnh_len); *remaining -= totlen; return (struct rtnexthop *) ((char *) rtnh + totlen); } static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh) { return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); } static inline int rtnh_attrlen(const struct rtnexthop *rtnh) { return rtnh->rtnh_len - NLA_ALIGN(sizeof(*rtnh)); } #endif it/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/ipv6/fou6.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/ipv6/fou6.c?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/ipv6/fou6.c?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/ipv6/fou6.c?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/ipv6/fou6.c'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/ipv6?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>ipv6</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/ipv6/fou6.c?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d'>fou6.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/ipv6/fou6.c?h=nds-private-remove&id=16a16cd35ee29d9bea54dd60e55d9c1cc685a37d&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>