Home
last modified time | relevance | path

Searched refs:fhdr (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/arch/ppc/boot/utils/
Dhack-coff.c35 struct external_filehdr fhdr; in main() local
47 if (read(fd, &fhdr, sizeof(fhdr)) != sizeof(fhdr)) in main()
49 i = get_16be(fhdr.f_magic); in main()
54 aoutsz = get_16be(fhdr.f_opthdr); in main()
57 nsect = get_16be(fhdr.f_nscns); in main()
/linux-2.4.37.9/net/ipv6/
Dreassembly.c419 struct frag_hdr *fhdr, int nhoff) in ip6_frag_queue() argument
427 offset = ntohs(fhdr->frag_off) & ~0x7; in ip6_frag_queue()
429 ((u8 *) (fhdr + 1) - (u8 *) (skb->nh.ipv6h + 1))); in ip6_frag_queue()
432 icmpv6_param_prob(skb,ICMPV6_HDR_FIELD, (u8*)&fhdr->frag_off - skb->nh.raw); in ip6_frag_queue()
438 csum_partial(skb->nh.raw, (u8*)(fhdr+1)-skb->nh.raw, 0)); in ip6_frag_queue()
441 if (!(fhdr->frag_off & htons(0x0001))) { in ip6_frag_queue()
474 if (!pskb_pull(skb, (u8 *) (fhdr + 1) - skb->data)) in ip6_frag_queue()
699 struct frag_hdr *fhdr; in ipv6_reassembly() local
718 fhdr = (struct frag_hdr *)skb->h.raw; in ipv6_reassembly()
720 if (!(fhdr->frag_off & htons(0xFFF9))) { in ipv6_reassembly()
[all …]
Dip6_output.c53 static __inline__ void ipv6_select_ident(struct sk_buff *skb, struct frag_hdr *fhdr) in ipv6_select_ident() argument
59 fhdr->identification = htonl(ipv6_fragmentation_id); in ipv6_select_ident()
312 struct frag_hdr *fhdr; in ipv6_build_fraghdr() local
314 fhdr = (struct frag_hdr *) skb_put(skb, sizeof(struct frag_hdr)); in ipv6_build_fraghdr()
316 fhdr->nexthdr = *prev_hdr; in ipv6_build_fraghdr()
318 prev_hdr = &fhdr->nexthdr; in ipv6_build_fraghdr()
320 fhdr->reserved = 0; in ipv6_build_fraghdr()
321 fhdr->frag_off = htons(offset); in ipv6_build_fraghdr()
322 ipv6_select_ident(skb, fhdr); in ipv6_build_fraghdr()
323 return &fhdr->nexthdr; in ipv6_build_fraghdr()
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_LOG.c102 struct frag_hdr *fhdr; in dump_packet() local
105 if (skb->len - ptr < sizeof(*fhdr)) { in dump_packet()
109 fhdr = (struct frag_hdr *)(skb->data + ptr); in dump_packet()
112 printk("%u ", ntohs(fhdr->frag_off) & 0xFFF8); in dump_packet()
115 if (fhdr->frag_off & htons(0x0001)) in dump_packet()
118 printk("ID:%08x ", ntohl(fhdr->identification)); in dump_packet()
120 if (ntohs(fhdr->frag_off) & 0xFFF8) in dump_packet()