Searched refs:ihdr (Results 1 – 6 of 6) sorted by relevance
/net/core/ |
D | selftests.c | 62 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/ |
D | ib_recv.c | 854 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/ |
D | exthdrs.c | 1103 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local 1106 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0() 1108 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0() 1109 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0() 1111 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 1114 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0() 1118 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
|
/net/tipc/ |
D | msg.c | 579 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()
|
D | link.c | 1943 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local 1961 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg() 1962 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg() 1964 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
|
/net/key/ |
D | af_key.c | 1718 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()
|