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

/freebsd-13-stable/sys/netpfil/ipfw/
H A Dip_fw_log.c75 * 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 Dip_fw2.c249 * 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 Dnat64_translate.h79 #define L3HDR(_ip, _t) ((_t)((uint32_t *)(_ip) + (_ip)->ip_hl)) macro
H A Dnat64lsn.c431 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