clip.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | clip.c (e5ed639913eea3e4783a550291775ab78dd84966) |
---|---|
1/* net/atm/clip.c - RFC1577 Classical IP over ATM */ 2 3/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ 4 5 6#include <linux/config.h> 7#include <linux/string.h> 8#include <linux/errno.h> --- 296 unchanged lines hidden (view full) --- 305 struct in_device *in_dev; 306 struct neigh_parms *parms; 307 308 DPRINTK("clip_constructor (neigh %p, entry %p)\n",neigh,entry); 309 neigh->type = inet_addr_type(entry->ip); 310 if (neigh->type != RTN_UNICAST) return -EINVAL; 311 312 rcu_read_lock(); | 1/* net/atm/clip.c - RFC1577 Classical IP over ATM */ 2 3/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ 4 5 6#include <linux/config.h> 7#include <linux/string.h> 8#include <linux/errno.h> --- 296 unchanged lines hidden (view full) --- 305 struct in_device *in_dev; 306 struct neigh_parms *parms; 307 308 DPRINTK("clip_constructor (neigh %p, entry %p)\n",neigh,entry); 309 neigh->type = inet_addr_type(entry->ip); 310 if (neigh->type != RTN_UNICAST) return -EINVAL; 311 312 rcu_read_lock(); |
313 in_dev = rcu_dereference(__in_dev_get(dev)); | 313 in_dev = __in_dev_get_rcu(dev); |
314 if (!in_dev) { 315 rcu_read_unlock(); 316 return -EINVAL; 317 } 318 319 parms = in_dev->arp_parms; 320 __neigh_parms_put(neigh->parms); 321 neigh->parms = neigh_parms_clone(parms); --- 724 unchanged lines hidden --- | 314 if (!in_dev) { 315 rcu_read_unlock(); 316 return -EINVAL; 317 } 318 319 parms = in_dev->arp_parms; 320 __neigh_parms_put(neigh->parms); 321 neigh->parms = neigh_parms_clone(parms); --- 724 unchanged lines hidden --- |