mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NETNS]: Process IP layer in the context of the correct namespace.
Replace all the rest of the init_net with a proper net on the IP layer. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7a6adb92fe
commit
cb84663e4d
5 changed files with 14 additions and 8 deletions
|
@ -204,8 +204,11 @@ static void ip_expire(unsigned long arg)
|
|||
|
||||
if ((qp->q.last_in&FIRST_IN) && qp->q.fragments != NULL) {
|
||||
struct sk_buff *head = qp->q.fragments;
|
||||
struct net *net;
|
||||
|
||||
net = container_of(qp->q.net, struct net, ipv4.frags);
|
||||
/* Send an ICMP "Fragment Reassembly Timeout" message. */
|
||||
if ((head->dev = dev_get_by_index(&init_net, qp->iif)) != NULL) {
|
||||
if ((head->dev = dev_get_by_index(net, qp->iif)) != NULL) {
|
||||
icmp_send(head, ICMP_TIME_EXCEEDED, ICMP_EXC_FRAGTIME, 0);
|
||||
dev_put(head->dev);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue