Searched refs:icmp_packet (Results 1 – 6 of 6) sorted by relevance
/linux-3.4.99/net/batman-adv/ |
D | icmp_socket.c | 34 struct icmp_packet_rr *icmp_packet, 117 if ((!buf) || (count < sizeof(struct icmp_packet))) in bat_socket_read() 139 error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len); in bat_socket_read() 156 struct icmp_packet_rr *icmp_packet; in bat_socket_write() local 160 size_t packet_len = sizeof(struct icmp_packet); in bat_socket_write() 162 if (len < sizeof(struct icmp_packet)) { in bat_socket_write() 185 icmp_packet = (struct icmp_packet_rr *)skb_put(skb, packet_len); in bat_socket_write() 187 if (copy_from_user(icmp_packet, buff, packet_len)) { in bat_socket_write() 192 if (icmp_packet->header.packet_type != BAT_ICMP) { in bat_socket_write() 199 if (icmp_packet->msg_type != ECHO_REQUEST) { in bat_socket_write() [all …]
|
D | routing.c | 286 struct icmp_packet_rr *icmp_packet; in recv_my_icmp_packet() local 289 icmp_packet = (struct icmp_packet_rr *)skb->data; in recv_my_icmp_packet() 292 if (icmp_packet->msg_type != ECHO_REQUEST) { in recv_my_icmp_packet() 293 bat_socket_receive_packet(icmp_packet, icmp_len); in recv_my_icmp_packet() 303 orig_node = orig_hash_find(bat_priv, icmp_packet->orig); in recv_my_icmp_packet() 315 icmp_packet = (struct icmp_packet_rr *)skb->data; in recv_my_icmp_packet() 317 memcpy(icmp_packet->dst, icmp_packet->orig, ETH_ALEN); in recv_my_icmp_packet() 318 memcpy(icmp_packet->orig, primary_if->net_dev->dev_addr, ETH_ALEN); in recv_my_icmp_packet() 319 icmp_packet->msg_type = ECHO_REPLY; in recv_my_icmp_packet() 320 icmp_packet->header.ttl = TTL; in recv_my_icmp_packet() [all …]
|
D | icmp_socket.h | 29 void bat_socket_receive_packet(struct icmp_packet_rr *icmp_packet,
|
D | packet.h | 114 struct icmp_packet { struct
|
D | types.h | 224 struct icmp_packet_rr icmp_packet; member
|
/linux-3.4.99/net/ipv4/netfilter/ |
D | nf_conntrack_proto_icmp.c | 84 static int icmp_packet(struct nf_conn *ct, in icmp_packet() function 344 .packet = icmp_packet,
|