Home
last modified time | relevance | path

Searched refs:ihdr (Results 1 – 6 of 6) sorted by relevance

/net/core/
Dselftests.c62 struct iphdr *ihdr; in net_test_get_skb() local
85 ihdr = skb_put(skb, sizeof(*ihdr)); in net_test_get_skb()
113 (sizeof(*ihdr) + sizeof(*ehdr))); in net_test_get_skb()
117 ihdr->ihl = 5; in net_test_get_skb()
118 ihdr->ttl = 32; in net_test_get_skb()
119 ihdr->version = 4; in net_test_get_skb()
121 ihdr->protocol = IPPROTO_TCP; in net_test_get_skb()
123 ihdr->protocol = IPPROTO_UDP; in net_test_get_skb()
124 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in net_test_get_skb()
133 ihdr->tot_len = htons(iplen); in net_test_get_skb()
[all …]
/net/rds/
Dib_recv.c854 struct rds_header *ihdr, *hdr; in rds_ib_process_recv() local
872 ihdr = ic->i_recv_hdrs[recv - ic->i_recvs]; in rds_ib_process_recv()
875 sizeof(*ihdr), DMA_FROM_DEVICE); in rds_ib_process_recv()
877 if (!rds_message_verify_checksum(ihdr)) { in rds_ib_process_recv()
887 state->ack_recv = be64_to_cpu(ihdr->h_ack); in rds_ib_process_recv()
891 if (ihdr->h_credit) in rds_ib_process_recv()
892 rds_ib_send_add_credits(conn, ihdr->h_credit); in rds_ib_process_recv()
894 if (ihdr->h_sport == 0 && ihdr->h_dport == 0 && data_len == 0) { in rds_ib_process_recv()
929 memcpy(hdr, ihdr, sizeof(*hdr)); in rds_ib_process_recv()
940 if (hdr->h_sequence != ihdr->h_sequence || in rds_ib_process_recv()
[all …]
/net/ipv6/
Dexthdrs.c1114 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local
1117 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0()
1119 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0()
1120 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0()
1122 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
1125 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0()
1129 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
/net/tipc/
Dmsg.c579 struct tipc_msg *hdr, *ihdr; in tipc_msg_extract() local
590 ihdr = (struct tipc_msg *)(msg_data(hdr) + *pos); in tipc_msg_extract()
591 imsz = msg_size(ihdr); in tipc_msg_extract()
600 skb_copy_to_linear_data(*iskb, ihdr, imsz); in tipc_msg_extract()
Dlink.c1944 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local
1962 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg()
1963 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg()
1965 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
/net/key/
Daf_key.c1718 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp() argument
1727 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()