Searched defs:icmp (Results 1 - 9 of 9) sorted by relevance

/external/android-clat/
H A Dipv4.c27 * translates an icmp packet
29 * icmp - pointer to icmp header in packet
34 int icmp_packet(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, argument
44 payload = (const uint8_t *) (icmp + 1);
47 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size);
H A Ddump.c30 #include <linux/icmp.h>
91 /* print icmp header */
92 void dump_icmp(struct icmphdr *icmp) { argument
95 printf("icmp.type = %x ",icmp->type);
96 if(icmp->type == ICMP_ECHOREPLY) {
98 } else if(icmp->type == ICMP_ECHO) {
104 printf("icmp.code = %x\n",icmp->code);
105 printf("icmp
[all...]
H A Dtranslate.c20 #include "icmp.h"
219 * translate ipv4 icmp to ipv6 icmp
221 * icmp - source packet icmp header
223 * payload - icmp payload
227 int icmp_to_icmp6(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, argument
235 icmp6_type = icmp_to_icmp6_type(icmp->type, icmp->code);
237 icmp6_targ->icmp6_code = icmp_to_icmp6_code(icmp
[all...]
/external/iptables/include/linux/netfilter/
H A Dnf_conntrack_tuple_common.h25 } icmp; member in union:nf_conntrack_man_proto
/external/kernel-headers/original/uapi/linux/netfilter/
H A Dnf_conntrack_tuple_common.h25 } icmp; member in union:nf_conntrack_man_proto
/external/iptables/extensions/
H A Dlibipt_icmp.c8 /* special hack for icmp-type 'any':
10 * '-p icmp ' matches all icmp packets
11 * '-p icmp -m icmp' matches _only_ ICMP type 0 :(
12 * This is now fixed by initializing the field * to icmp type 0xFF
105 "icmp match options:\n"
106 "[!] --icmp-type typename match icmp type\n"
107 "[!] --icmp
223 const struct ipt_icmp *icmp = (struct ipt_icmp *)match->data; local
237 const struct ipt_icmp *icmp = (struct ipt_icmp *)match->data; local
[all...]
/external/dnsmasq/src/
H A Ddnsmasq.c391 CAP_NET_RAW (for icmp) if we're doing dhcp */
1268 struct icmp icmp; member in struct:__anon3799
1291 memset(&packet.icmp, 0, sizeof(packet.icmp));
1292 packet.icmp.icmp_type = ICMP_ECHO;
1293 packet.icmp.icmp_id = id;
1294 for (j = 0, i = 0; i < sizeof(struct icmp) / 2; i++)
1295 j += ((u16 *)&packet.icmp)[i];
1298 packet.icmp
[all...]
/external/tcpdump/
H A Dprint-icmp.c24 "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.87 2007-09-13 17:42:31 guy Exp $ (LBL)";
51 * Structure of an icmp header.
53 struct icmp { struct
104 #define ICMP_EXTD_MINLEN (156 - sizeof (struct ip)) /* draft-bonica-internet-icmp-08 */
196 /* Most of the icmp types */
265 * draft-bonica-internet-icmp-08
337 const struct icmp *dp;
351 dp = (struct icmp *)bp;
571 (void)printf(" (wrong icmp cksum %x (->%x)!)",
694 fputs("[|icmp]", stdou
[all...]
/external/libnl/include/
H A Dnetlink-types.h728 } icmp; member in union:nfnl_ct_proto

Completed in 292 milliseconds