version 1.149.4.11, 2017/08/28 17:53:12 |
version 1.182, 2017/09/27 10:05:05 |
Line 428 ip6_input(struct mbuf *m, struct ifnet * |
|
Line 428 ip6_input(struct mbuf *m, struct ifnet * |
|
* to the usage conflict. |
* to the usage conflict. |
* in6_setscope() then also checks and rejects the cases where src or |
* in6_setscope() then also checks and rejects the cases where src or |
* dst are the loopback address and the receiving interface |
* dst are the loopback address and the receiving interface |
* is not loopback. |
* is not loopback. |
*/ |
*/ |
if (__predict_false( |
if (__predict_false( |
m_makewritable(&m, 0, sizeof(struct ip6_hdr), M_DONTWAIT))) |
m_makewritable(&m, 0, sizeof(struct ip6_hdr), M_DONTWAIT))) |
Line 797 ip6_input(struct mbuf *m, struct ifnet * |
|
Line 797 ip6_input(struct mbuf *m, struct ifnet * |
|
} |
} |
#endif /* IPSEC */ |
#endif /* IPSEC */ |
|
|
SOFTNET_LOCK(); |
|
nxt = (*inet6sw[ip6_protox[nxt]].pr_input)(&m, &off, nxt); |
nxt = (*inet6sw[ip6_protox[nxt]].pr_input)(&m, &off, nxt); |
SOFTNET_UNLOCK(); |
|
} |
} |
return; |
return; |
|
|
Line 854 ip6_getdstifaddr(struct mbuf *m) |
|
Line 852 ip6_getdstifaddr(struct mbuf *m) |
|
* rtalertp - XXX: should be stored more smart way |
* rtalertp - XXX: should be stored more smart way |
*/ |
*/ |
int |
int |
ip6_hopopts_input(u_int32_t *plenp, u_int32_t *rtalertp, |
ip6_hopopts_input(u_int32_t *plenp, u_int32_t *rtalertp, |
struct mbuf **mp, int *offp) |
struct mbuf **mp, int *offp) |
{ |
{ |
struct mbuf *m = *mp; |
struct mbuf *m = *mp; |
Line 899 ip6_hopopts_input(u_int32_t *plenp, u_in |
|
Line 897 ip6_hopopts_input(u_int32_t *plenp, u_in |
|
* opthead + hbhlen is located in continuous memory region. |
* opthead + hbhlen is located in continuous memory region. |
*/ |
*/ |
static int |
static int |
ip6_process_hopopts(struct mbuf *m, u_int8_t *opthead, int hbhlen, |
ip6_process_hopopts(struct mbuf *m, u_int8_t *opthead, int hbhlen, |
u_int32_t *rtalertp, u_int32_t *plenp) |
u_int32_t *rtalertp, u_int32_t *plenp) |
{ |
{ |
struct ip6_hdr *ip6; |
struct ip6_hdr *ip6; |
Line 1074 ip6_unknown_opt(u_int8_t *optp, struct m |
|
Line 1072 ip6_unknown_opt(u_int8_t *optp, struct m |
|
* you are using IP6_EXTHDR_CHECK() not m_pulldown()) |
* you are using IP6_EXTHDR_CHECK() not m_pulldown()) |
*/ |
*/ |
void |
void |
ip6_savecontrol(struct in6pcb *in6p, struct mbuf **mp, |
ip6_savecontrol(struct in6pcb *in6p, struct mbuf **mp, |
struct ip6_hdr *ip6, struct mbuf *m) |
struct ip6_hdr *ip6, struct mbuf *m) |
{ |
{ |
struct socket *so = in6p->in6p_socket; |
struct socket *so = in6p->in6p_socket; |