addrconf.h (1724c7c0c9494dcbdd7f630f29e1e8427cb231d1) addrconf.h (12d94a804946af291e24b80fc53ec86264765781)
1#ifndef _ADDRCONF_H
2#define _ADDRCONF_H
3
4#define MAX_RTR_SOLICITATIONS -1 /* unlimited */
5#define RTR_SOLICITATION_INTERVAL (4*HZ)
6#define RTR_SOLICITATION_MAX_INTERVAL (3600*HZ) /* 1 hour */
7
8#define MIN_VALID_LIFETIME (2*3600) /* 2 hours */

--- 322 unchanged lines hidden (view full) ---

331void in6_dev_finish_destroy(struct inet6_dev *idev);
332
333static inline void in6_dev_put(struct inet6_dev *idev)
334{
335 if (refcount_dec_and_test(&idev->refcnt))
336 in6_dev_finish_destroy(idev);
337}
338
1#ifndef _ADDRCONF_H
2#define _ADDRCONF_H
3
4#define MAX_RTR_SOLICITATIONS -1 /* unlimited */
5#define RTR_SOLICITATION_INTERVAL (4*HZ)
6#define RTR_SOLICITATION_MAX_INTERVAL (3600*HZ) /* 1 hour */
7
8#define MIN_VALID_LIFETIME (2*3600) /* 2 hours */

--- 322 unchanged lines hidden (view full) ---

331void in6_dev_finish_destroy(struct inet6_dev *idev);
332
333static inline void in6_dev_put(struct inet6_dev *idev)
334{
335 if (refcount_dec_and_test(&idev->refcnt))
336 in6_dev_finish_destroy(idev);
337}
338
339static inline void in6_dev_put_clear(struct inet6_dev **pidev)
340{
341 struct inet6_dev *idev = *pidev;
342
343 if (idev) {
344 in6_dev_put(idev);
345 *pidev = NULL;
346 }
347}
348
339static inline void __in6_dev_put(struct inet6_dev *idev)
340{
341 refcount_dec(&idev->refcnt);
342}
343
344static inline void in6_dev_hold(struct inet6_dev *idev)
345{
346 refcount_inc(&idev->refcnt);

--- 84 unchanged lines hidden ---
349static inline void __in6_dev_put(struct inet6_dev *idev)
350{
351 refcount_dec(&idev->refcnt);
352}
353
354static inline void in6_dev_hold(struct inet6_dev *idev)
355{
356 refcount_inc(&idev->refcnt);

--- 84 unchanged lines hidden ---