File: ipv6_u.h

package info (click to toggle)
l2tpns 2.3.3-1~bpo10%2B2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,840 kB
  • sloc: ansic: 21,992; sh: 164; perl: 139; makefile: 127
file content (16 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#ifndef __IPV6_U_H__
#define __IPV6_U_H__

struct ipv6_pseudo_hdr {
	struct in6_addr src;
	struct in6_addr dest;
	uint32_t ulp_length;
	uint32_t zero    : 24;
	uint32_t nexthdr :  8;
} __attribute__((packed));

// dhcp6.c
uint16_t ipv6_checksum(struct ipv6_pseudo_hdr *p_pshdr, uint8_t *buff, int lenbuff);

#endif /* __IPV6_U_H__ */