Home
last modified time | relevance | path

Searched refs:ipv6hdr (Results 1 – 25 of 34) sorted by relevance

12

/linux-2.4.37.9/net/ipv6/
Dip6_input.c55 struct ipv6hdr *hdr; in ipv6_rcv()
71 if (skb->len < sizeof(struct ipv6hdr)) in ipv6_rcv()
74 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in ipv6_rcv()
86 if (pkt_len + sizeof(struct ipv6hdr) > skb->len) in ipv6_rcv()
88 if (pkt_len + sizeof(struct ipv6hdr) < skb->len) { in ipv6_rcv()
89 if (__pskb_trim(skb, pkt_len + sizeof(struct ipv6hdr))) in ipv6_rcv()
99 if (ipv6_parse_hopopts(skb, offsetof(struct ipv6hdr, nexthdr)) < 0) { in ipv6_rcv()
124 struct ipv6hdr *hdr = skb->nh.ipv6h; in ip6_input_finish()
132 skb->h.raw = skb->nh.raw + sizeof(struct ipv6hdr); in ip6_input_finish()
139 nhoff = offsetof(struct ipv6hdr, nexthdr); in ip6_input_finish()
[all …]
Dip6_output.c141 struct ipv6hdr *iph = skb->nh.ipv6h; in ip6_route_me_harder()
193 struct ipv6hdr *hdr; in ip6_xmit()
206 head_room += sizeof(struct ipv6hdr) + ((dst->dev->hard_header_len + 15)&~15); in ip6_xmit()
223 hdr = skb->nh.ipv6h = (struct ipv6hdr*)skb_push(skb, sizeof(struct ipv6hdr)); in ip6_xmit()
268 struct ipv6hdr *hdr; in ip6_nd_hdr()
274 totlen = len + sizeof(struct ipv6hdr); in ip6_nd_hdr()
276 hdr = (struct ipv6hdr *) skb_put(skb, sizeof(struct ipv6hdr)); in ip6_nd_hdr()
291 static struct ipv6hdr * ip6_bld_1(struct sock *sk, struct sk_buff *skb, struct flowi *fl, in ip6_bld_1()
294 struct ipv6hdr *hdr; in ip6_bld_1()
296 skb->nh.raw = skb_put(skb, sizeof(struct ipv6hdr)); in ip6_bld_1()
[all …]
Dicmp.c262 struct ipv6hdr *hdr = skb->nh.ipv6h; in icmpv6_send()
357 len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr)); in icmpv6_send()
430 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in icmpv6_notify()
433 nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr; in icmpv6_notify()
436 …nner_offset = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, skb->len - sizeof(struct ipv… in icmpv6_notify()
440 inner_offset = sizeof(struct ipv6hdr); in icmpv6_notify()
487 struct ipv6hdr *orig_hdr; in icmpv6_rcv()
558 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in icmpv6_rcv()
561 orig_hdr = (struct ipv6hdr *) (hdr + 1); in icmpv6_rcv()
Ddatagram.c56 serr->addr_offset = (u8*)&(((struct ipv6hdr*)(icmph+1))->daddr) - skb->nh.raw; in ipv6_icmp_error()
69 struct ipv6hdr *iph; in ipv6_local_error()
75 skb = alloc_skb(sizeof(struct ipv6hdr), GFP_ATOMIC); in ipv6_local_error()
79 iph = (struct ipv6hdr*)skb_put(skb, sizeof(struct ipv6hdr)); in ipv6_local_error()
Dexthdrs.c513 if (pkt_len > skb->len - sizeof(struct ipv6hdr)) { in ipv6_hop_jumbo()
517 if (pkt_len + sizeof(struct ipv6hdr) < skb->len) { in ipv6_hop_jumbo()
518 __pskb_trim(skb, pkt_len + sizeof(struct ipv6hdr)); in ipv6_hop_jumbo()
537 ((struct inet6_skb_parm*)skb->cb)->hop = sizeof(struct ipv6hdr); in ipv6_parse_hopopts()
539 return sizeof(struct ipv6hdr); in ipv6_parse_hopopts()
Dsit.c292 struct ipv6hdr *iph6; in ipip6_err()
301 if (len < hlen + sizeof(struct ipv6hdr)) in ipip6_err()
303 iph6 = (struct ipv6hdr*)(dp + hlen); in ipip6_err()
388 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in ipip6_rcv()
450 struct ipv6hdr *iph6 = skb->nh.ipv6h; in ipip6_tunnel_xmit()
Dip6_fw.c131 struct ipv6hdr *hdr = skb->nh.ipv6h; in ip6_fw_accept_trans()
134 len = skb->len - sizeof(struct ipv6hdr); in ip6_fw_accept_trans()
Dreassembly.c459 offsetof(struct ipv6hdr, payload_len)); in ip6_frag_queue()
602 payload_len = (head->data - head->nh.raw) - sizeof(struct ipv6hdr) + fq->len; in ip6_frag_reasm()
701 struct ipv6hdr *hdr; in ipv6_reassembly()
Dtcp_ipv6.c699 tp->mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()
730 struct ipv6hdr *hdr = (struct ipv6hdr*)skb->data; in tcp_v6_err()
981 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + sizeof(struct tcphdr), GFP_ATOMIC); in tcp_v6_send_reset()
985 skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + sizeof(struct tcphdr)); in tcp_v6_send_reset()
1043 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len, GFP_ATOMIC); in tcp_v6_send_ack()
1047 skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); in tcp_v6_send_ack()
1201 tp.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_conn_request()
1792 sizeof(struct ipv6hdr),
/linux-2.4.37.9/include/net/
Ddsfield.h21 static inline __u8 ipv6_get_dsfield(struct ipv6hdr *ipv6h) in ipv6_get_dsfield()
43 static inline void ipv6_change_dsfield(struct ipv6hdr *ipv6h,__u8 mask, in ipv6_change_dsfield()
Dinet_ecn.h55 struct ipv6hdr;
57 static inline void IP6_ECN_set_ce(struct ipv6hdr *iph) in IP6_ECN_set_ce()
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_LOG.c63 struct ipv6hdr *ipv6h; in dump_packet()
71 ipv6h = (struct ipv6hdr *)(skb->data + ip6hoff); in dump_packet()
79 ntohs(ipv6h->payload_len) + sizeof(struct ipv6hdr), in dump_packet()
85 ptr = ip6hoff + sizeof(struct ipv6hdr); in dump_packet()
Dip6t_length.c19 u_int16_t pktlen = ntohs(skb->nh.ipv6h->payload_len) + sizeof(struct ipv6hdr); in match()
Dip6_queue.c297 struct ipv6hdr *iph = skb->nh.ipv6h; in ipq_enqueue_packet()
339 struct ipv6hdr *user_iph = (struct ipv6hdr *)v->payload; in ipq_mangle_ipv6()
377 struct ipv6hdr *iph = e->skb->nh.ipv6h; in ipq_mangle_ipv6()
Dip6t_hl.c25 const struct ipv6hdr *ip6h = skb->nh.ipv6h; in match()
Dip6t_ipv6header.c43 ptr = sizeof(struct ipv6hdr); in ipv6header_match()
Dip6t_esp.c63 ptr = sizeof(struct ipv6hdr); in match()
Dip6t_ah.c67 ptr = sizeof(struct ipv6hdr); in match()
Dip6t_frag.c58 ptr = sizeof(struct ipv6hdr); in match()
Dip6t_dst.c71 ptr = sizeof(struct ipv6hdr);
Dip6t_hbh.c71 ptr = sizeof(struct ipv6hdr);
Dip6t_rt.c59 ptr = sizeof(struct ipv6hdr); in match()
/linux-2.4.37.9/include/linux/
Dipv6.h83 struct ipv6hdr { struct
/linux-2.4.37.9/net/sctp/
Dipv6.c102 struct ipv6hdr *iph = (struct ipv6hdr *)skb->data; in sctp_v6_err()
959 .net_header_len = sizeof(struct ipv6hdr),
/linux-2.4.37.9/net/sched/
Dcls_rsvp.h147 struct ipv6hdr *nhptr = skb->nh.ipv6h; in rsvp_classify()
158 xprt = ((u8*)nhptr) + sizeof(struct ipv6hdr); in rsvp_classify()

12