ipv6.h (e67ae213c72f72be50561c060ae17e92426651da) ipv6.h (ceba1832b1b2da0149c51de62a847c00bca1677a)
1/*
2 * Linux INET6 implementation
3 *
4 * Authors:
5 * Pedro Roque <roque@di.fc.ul.pt>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

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

314 int newtype,
315 struct ipv6_opt_hdr *newopt,
316 int newoptlen);
317struct ipv6_txoptions *ipv6_fixup_options(struct ipv6_txoptions *opt_space,
318 struct ipv6_txoptions *opt);
319
320bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,
321 const struct inet6_skb_parm *opt);
1/*
2 * Linux INET6 implementation
3 *
4 * Authors:
5 * Pedro Roque <roque@di.fc.ul.pt>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

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

314 int newtype,
315 struct ipv6_opt_hdr *newopt,
316 int newoptlen);
317struct ipv6_txoptions *ipv6_fixup_options(struct ipv6_txoptions *opt_space,
318 struct ipv6_txoptions *opt);
319
320bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,
321 const struct inet6_skb_parm *opt);
322struct ipv6_txoptions *ipv6_update_options(struct sock *sk,
323 struct ipv6_txoptions *opt);
322
323static inline bool ipv6_accept_ra(struct inet6_dev *idev)
324{
325 /* If forwarding is enabled, RA are not accepted unless the special
326 * hybrid mode (accept_ra=2) is enabled.
327 */
328 return idev->cnf.forwarding ? idev->cnf.accept_ra == 2 :
329 idev->cnf.accept_ra;

--- 709 unchanged lines hidden ---
324
325static inline bool ipv6_accept_ra(struct inet6_dev *idev)
326{
327 /* If forwarding is enabled, RA are not accepted unless the special
328 * hybrid mode (accept_ra=2) is enabled.
329 */
330 return idev->cnf.forwarding ? idev->cnf.accept_ra == 2 :
331 idev->cnf.accept_ra;

--- 709 unchanged lines hidden ---