Lines Matching refs:net_ipv4_hdr
43 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_create_full()
44 struct net_ipv4_hdr *ipv4_hdr; in net_ipv4_create_full()
46 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_create_full()
84 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in net_ipv4_create_full()
110 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_finalize()
111 struct net_ipv4_hdr *ipv4_hdr; in net_ipv4_finalize()
115 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_finalize()
166 if (net_pkt_skip(pkt, sizeof(struct net_ipv4_hdr))) { in net_ipv4_parse_hdr_options()
243 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_input()
249 struct net_ipv4_hdr *hdr; in net_ipv4_input()
263 hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_input()
270 if (hdr_len < sizeof(struct net_ipv4_hdr)) { in net_ipv4_input()
275 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in net_ipv4_input()
282 opts_len = hdr_len - sizeof(struct net_ipv4_hdr); in net_ipv4_input()