Searched refs:L3HDR (Results 1 - 4 of 4) sorted by relevance
/freebsd-13-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 75 * L3HDR maps an ipv4 pointer into a layer3 header pointer of type T 78 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) macro 323 tcp = L3HDR(struct tcphdr, ip); 324 udp = L3HDR(struct udphdr, ip); 357 icmp = L3HDR(struct icmphdr, ip);
|
H A D | ip_fw2.c | 249 * L3HDR maps an ipv4 pointer into a layer3 header pointer of type T 252 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) macro 1014 L3HDR(struct tcphdr, mtod(args->m, struct ip *)); 1033 sctp = L3HDR(struct sctphdr, mtod(args->m, struct ip *));
|
/freebsd-13-stable/sys/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 *); 592 *port = ntohs(L3HDR(ip, struct tcphdr *)->th_dport); 595 *port = ntohs(L3HDR(ip, struct udphdr *)->uh_dport);
|
Completed in 102 milliseconds