Skip to content

Commit fd0ea7d

Browse files
yoshfujidavem330
authored andcommitted
ndisc: Unexport ndisc_{build,send}_skb().
These symbols were exported for bonding device by commit 305d552 ("bonding: send IPv6 neighbor advertisement on failover"). It bacame obsolete by commit 7c89943 ("bonding, ipv4, ipv6, vlan: Handle NETDEV_BONDING_FAILOVER like NETDEV_NOTIFY_PEERS") and removed by commit 4f5762e ("bonding: Remove obsolete source file 'bond_ipv6.c'"). Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 895464f commit fd0ea7d

2 files changed

Lines changed: 11 additions & 31 deletions

File tree

‎include/net/ndisc.h‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -190,21 +190,6 @@ extern void ndisc_send_redirect(struct sk_buff *skb,
190190
extern int ndisc_mc_map(const struct in6_addr *addr, char *buf,
191191
struct net_device *dev, int dir);
192192

193-
extern struct sk_buff *ndisc_build_skb(struct net_device *dev,
194-
const struct in6_addr *daddr,
195-
const struct in6_addr *saddr,
196-
struct icmp6hdr *icmp6h,
197-
const struct in6_addr *target,
198-
int llinfo);
199-
200-
extern void ndisc_send_skb(struct sk_buff *skb,
201-
struct net_device *dev,
202-
struct neighbour *neigh,
203-
const struct in6_addr *daddr,
204-
const struct in6_addr *saddr,
205-
struct icmp6hdr *icmp6h);
206-
207-
208193

209194
/*
210195
* IGMP

‎net/ipv6/ndisc.c‎

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,12 @@ static void pndisc_destructor(struct pneigh_entry *n)
370370
ipv6_dev_mc_dec(dev, &maddr);
371371
}
372372

373-
struct sk_buff *ndisc_build_skb(struct net_device *dev,
374-
const struct in6_addr *daddr,
375-
const struct in6_addr *saddr,
376-
struct icmp6hdr *icmp6h,
377-
const struct in6_addr *target,
378-
int llinfo)
373+
static struct sk_buff *ndisc_build_skb(struct net_device *dev,
374+
const struct in6_addr *daddr,
375+
const struct in6_addr *saddr,
376+
struct icmp6hdr *icmp6h,
377+
const struct in6_addr *target,
378+
int llinfo)
379379
{
380380
struct net *net = dev_net(dev);
381381
struct sock *sk = net->ipv6.ndisc_sk;
@@ -431,14 +431,11 @@ struct sk_buff *ndisc_build_skb(struct net_device *dev,
431431
return skb;
432432
}
433433

434-
EXPORT_SYMBOL(ndisc_build_skb);
435-
436-
void ndisc_send_skb(struct sk_buff *skb,
437-
struct net_device *dev,
438-
struct neighbour *neigh,
439-
const struct in6_addr *daddr,
440-
const struct in6_addr *saddr,
441-
struct icmp6hdr *icmp6h)
434+
static void ndisc_send_skb(struct sk_buff *skb, struct net_device *dev,
435+
struct neighbour *neigh,
436+
const struct in6_addr *daddr,
437+
const struct in6_addr *saddr,
438+
struct icmp6hdr *icmp6h)
442439
{
443440
struct flowi6 fl6;
444441
struct dst_entry *dst;
@@ -473,8 +470,6 @@ void ndisc_send_skb(struct sk_buff *skb,
473470
rcu_read_unlock();
474471
}
475472

476-
EXPORT_SYMBOL(ndisc_send_skb);
477-
478473
/*
479474
* Send a Neighbour Discover packet
480475
*/

0 commit comments

Comments
 (0)