Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/nat64/nat64_translate.h
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | #define IN6_IS_ADDR_WKPFX(a) \ | ||||
((a)->s6_addr32[0] == IPV6_ADDR_INT32_WKPFX && \ | ((a)->s6_addr32[0] == IPV6_ADDR_INT32_WKPFX && \ | ||||
(a)->s6_addr32[1] == 0 && (a)->s6_addr32[2] == 0) | (a)->s6_addr32[1] == 0 && (a)->s6_addr32[2] == 0) | ||||
int nat64_check_private_ip4(const struct nat64_config *cfg, in_addr_t ia); | int nat64_check_private_ip4(const struct nat64_config *cfg, in_addr_t ia); | ||||
int nat64_check_prefixlen(int length); | int nat64_check_prefixlen(int length); | ||||
int nat64_check_prefix6(const struct in6_addr *prefix, int length); | int nat64_check_prefix6(const struct in6_addr *prefix, int length); | ||||
int nat64_getlasthdr(struct mbuf *m, int *offset); | int nat64_getlasthdr(struct mbuf *m, int *offset); | ||||
int nat64_do_handle_ip4(struct mbuf *m, struct in6_addr *saddr, | int nat64_do_handle_ip4(struct mbuf *m, struct in6_addr *saddr, | ||||
struct in6_addr *daddr, uint16_t lport, struct nat64_config *cfg, | struct in6_addr *daddr, uint16_t lport, struct nat64_config *cfg, | ||||
void *logdata); | void *logdata); | ||||
donner: I can't check the context of this lines, because the patch was not generated by the recommended… | |||||
int nat64_do_handle_ip6(struct mbuf *m, uint32_t aaddr, uint16_t aport, | int nat64_do_handle_ip6(struct mbuf *m, uint32_t aaddr, uint16_t aport, | ||||
struct nat64_config *cfg, void *logdata); | struct nat64_config *cfg, void *logdata); | ||||
int nat64_handle_icmp6(struct mbuf *m, int hlen, uint32_t aaddr, | int nat64_handle_icmp6(struct mbuf *m, int hlen, uint32_t aaddr, | ||||
uint16_t aport, struct nat64_config *cfg, void *logdata); | uint16_t aport, struct nat64_config *cfg, void *logdata); | ||||
void nat64_embed_ip4(struct in6_addr *ip6, int plen, in_addr_t ia); | void nat64_embed_ip4(struct in6_addr *ip6, int plen, in_addr_t ia); | ||||
in_addr_t nat64_extract_ip4(const struct in6_addr *ip6, int plen); | in_addr_t nat64_extract_ip4(const struct in6_addr *ip6, int plen); | ||||
void nat64_local_csum(struct mbuf *m); | |||||
void nat64_set_output_method(int); | void nat64_set_output_method(int); | ||||
int nat64_get_output_method(void); | int nat64_get_output_method(void); | ||||
#endif | #endif | ||||
I can't check the context of this lines, because the patch was not generated by the recommended procedure, so please check yourself if the argument is part of the cfg argument in the same call.