Home
last modified time | relevance | path

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

/freebsd/sys/netpfil/ipfw/
H A Dip_fw_log.c80 #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 Dip_fw2.c254 #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 Dnat64_translate.h77 #define L3HDR(_ip, _t) ((_t)((uint32_t *)(_ip) + (_ip)->ip_hl)) macro
H A Dnat64lsn.c430 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()