Home
last modified time | relevance | path

Searched refs:L3HDR (Results 1 – 4 of 4) sorted by relevance

/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_log.c78 #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 Dip_fw2.c252 #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 Dnat64_translate.h79 #define L3HDR(_ip, _t) ((_t)((uint32_t *)(_ip) + (_ip)->ip_hl)) macro
H A Dnat64lsn.c431 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()