#include <linux/export.h> #include <linux/icmpv6.h> #include <linux/mutex.h> #include <linux/netdevice.h> #include <linux/spinlock.h> #include <net/ipv6.h> #if IS_ENABLED(CONFIG_IPV6) static ip6_icmp_send_t __rcu *ip6_icmp_send; int inet6_register_icmp_sender(ip6_icmp_send_t *fn) { return (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, NULL, fn) == NULL) ? 0 : -EBUSY; } EXPORT_SYMBOL(inet6_register_icmp_sender); int inet6_unregister_icmp_sender(ip6_icmp_send_t *fn) { int ret; ret = (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, fn, NULL) == fn) ? 0 : -EINVAL; synchronize_net(); return ret; } EXPORT_SYMBOL(inet6_unregister_icmp_sender); void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info) { ip6_icmp_send_t *send; rcu_read_lock(); send = rcu_dereference(ip6_icmp_send); if (!send) goto out; send(skb, type, code, info, NULL); out: rcu_read_unlock(); } EXPORT_SYMBOL(icmpv6_send); #endif t();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master' selected='selected'>master</option> <option value='nds-private-remove'>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/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=5fa8bbda38c668e56b0c6cdecced2eac2fe36dec'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include?id=5fa8bbda38c668e56b0c6cdecced2eac2fe36dec'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include?id=5fa8bbda38c668e56b0c6cdecced2eac2fe36dec'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include?id=5fa8bbda38c668e56b0c6cdecced2eac2fe36dec'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include'> <input type='hidden' name='id' value='5fa8bbda38c668e56b0c6cdecced2eac2fe36dec'/><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/?id=5fa8bbda38c668e56b0c6cdecced2eac2fe36dec'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=5fa8bbda38c668e56b0c6cdecced2eac2fe36dec'>include</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/include?id=5fa8bbda38c668e56b0c6cdecced2eac2fe36dec&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr> <tr><td><span title='2017-02-03 11:05:23 -0500'>2017-02-03</span></td><td><a href='/cgit.cgi/linux/net-next.git/commit/include?id=013e8167899d389075160412a8c0c5e0581e1f13'>ipv6: sr: remove cleanup flag and fix HMAC computation</a></td><td>David Lebrun</td><td>1</td><td><span class='deletions'>-6</span>/<span class='insertions'>+3</span></td></tr> <tr><td><span title='2017-02-01 11:52:27 -0800'>2017-02-01</span></td><td><a href='/cgit.cgi/linux/net-next.git/commit/include?id=6d04dfc8966019b8b0977b2cb942351f13d2b178'>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net</a></td><td>Linus Torvalds</td><td>4</td><td><span class='deletions'>-19</span>/<span class='insertions'>+26</span></td></tr> <tr><td><span title='2017-02-01 10:30:56 -0800'>2017-02-01</span></td><td><a href='/cgit.cgi/linux/net-next.git/commit/include?id=2883aaea363f7a897ff06d2e6c73ae7aae285bcb'>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...</a></td><td>Linus Torvalds</td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+1</span></td></tr> <tr><td><span title='2017-02-01 12:10:56 -0500'>2017-02-01</span></td><td><a href='/cgit.cgi/linux/net-next.git/commit/include?id=1a2a14444d32b89b28116daea86f63ced1716668'>net: fix ndo_features_check/ndo_fix_features comment ordering</a></td><td>Dimitris Michailidis</td><td>1</td><td><span class='deletions'>-14</span>/<span class='insertions'>+15</span></td></tr>