Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/ipfw/nptv6/nptv6.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | struct nptv6_cfg { | ||||
struct named_object no; | struct named_object no; | ||||
struct in6_addr internal; /* Internal IPv6 prefix */ | struct in6_addr internal; /* Internal IPv6 prefix */ | ||||
struct in6_addr external; /* External IPv6 prefix */ | struct in6_addr external; /* External IPv6 prefix */ | ||||
struct in6_addr mask; /* IPv6 prefix mask */ | struct in6_addr mask; /* IPv6 prefix mask */ | ||||
uint16_t adjustment; /* Checksum adjustment value */ | uint16_t adjustment; /* Checksum adjustment value */ | ||||
uint8_t plen; /* Prefix length */ | uint8_t plen; /* Prefix length */ | ||||
uint8_t flags; /* Flags for internal use */ | uint8_t flags; /* Flags for internal use */ | ||||
#define NPTV6_48PLEN 0x0001 | #define NPTV6_READY 0x80 | ||||
#define NPTV6_48PLEN 0x40 | |||||
char if_name[IF_NAMESIZE]; | |||||
char name[64]; /* Instance name */ | char name[64]; /* Instance name */ | ||||
counter_u64_t stats[NPTV6STATS]; /* Statistics counters */ | counter_u64_t stats[NPTV6STATS]; /* Statistics counters */ | ||||
}; | }; | ||||
#define NPTV6_FLAGSMASK 0 | #define NPTV6_FLAGSMASK (NPTV6_DYNAMIC_PREFIX) | ||||
int nptv6_init(struct ip_fw_chain *ch, int first); | int nptv6_init(struct ip_fw_chain *ch, int first); | ||||
void nptv6_uninit(struct ip_fw_chain *ch, int last); | void nptv6_uninit(struct ip_fw_chain *ch, int last); | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _IP_FW_NPTV6_H_ */ | #endif /* _IP_FW_NPTV6_H_ */ | ||||