Searched refs:L3HDR (Results 1 – 4 of 4) sorted by relevance
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_fw_log.c | 78 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) macro 325 tcp = L3HDR(struct tcphdr, ip); in ipfw_log() 326 udp = L3HDR(struct udphdr, ip); in ipfw_log() 359 icmp = L3HDR(struct icmphdr, ip); in ipfw_log()
|
| H A D | ip_fw2.c | 252 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) macro 1016 L3HDR(struct tcphdr, mtod(args->m, struct ip *)); in send_reject() 1035 sctp = L3HDR(struct sctphdr, mtod(args->m, struct ip *)); in send_reject()
|
| /f-stack/freebsd/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.h | 79 #define L3HDR(_ip, _t) ((_t)((uint32_t *)(_ip) + (_ip)->ip_hl)) macro
|
| H A D | nat64lsn.c | 431 icmp = L3HDR(ip, struct icmp *); in inspect_icmp_mbuf() 592 *port = ntohs(L3HDR(ip, struct tcphdr *)->th_dport); in nat64lsn_reassemble4() 595 *port = ntohs(L3HDR(ip, struct udphdr *)->uh_dport); in nat64lsn_reassemble4()
|