Searched refs:L3HDR (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 80 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) macro 339 tcp = L3HDR(struct tcphdr, ip); in ipfw_log_syslog() 340 udp = L3HDR(struct udphdr, ip); in ipfw_log_syslog() 373 icmp = L3HDR(struct icmphdr, ip); in ipfw_log_syslog()
|
H A D | ip_fw2.c | 254 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) macro 1017 L3HDR(struct tcphdr, mtod(args->m, struct ip *)); in send_reject() 1036 sctp = L3HDR(struct sctphdr, mtod(args->m, struct ip *)); in send_reject()
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.h | 77 #define L3HDR(_ip, _t) ((_t)((uint32_t *)(_ip) + (_ip)->ip_hl)) macro
|
H A D | nat64lsn.c | 430 icmp = L3HDR(ip, struct icmp *); in inspect_icmp_mbuf() 591 *port = ntohs(L3HDR(ip, struct tcphdr *)->th_dport); in nat64lsn_reassemble4() 594 *port = ntohs(L3HDR(ip, struct udphdr *)->uh_dport); in nat64lsn_reassemble4()
|