75 #define icmp_pptr icmp_hun.ih_pptr
76 #define icmp_gwaddr icmp_hun.ih_gwaddr
77 #define icmp_id icmp_hun.ih_idseq.icd_id
78 #define icmp_seq icmp_hun.ih_idseq.icd_seq
79 #define icmp_void icmp_hun.ih_void
80 #define icmp_pmvoid icmp_hun.ih_pmtu.ipm_void
81 #define icmp_nextmtu icmp_hun.ih_pmtu.ipm_nextmtu
82 #define icmp_num_addrs icmp_hun.ih_rtradv.irt_num_addrs
83 #define icmp_wpa icmp_hun.ih_rtradv.irt_wpa
84 #define icmp_lifetime icmp_hun.ih_rtradv.irt_lifetime
99 #define icmp_otime icmp_dun.id_ts.its_otime
100 #define icmp_rtime icmp_dun.id_ts.its_rtime
101 #define icmp_ttime icmp_dun.id_ts.its_ttime
102 #define icmp_ip icmp_dun.id_ip.idi_ip
103 #define icmp_radv icmp_dun.id_mask
104 #define icmp_mask icmp_dun.id_mask
105 #define icmp_data icmp_dun.id_data
116 #define ICMP_MINLEN 8
117 #define ICMP_TSLEN (8 + 3 * sizeof (u_int32_t))
118 #define ICMP_MASKLEN 12
119 #define ICMP_ADVLENMIN (8 + sizeof (struct ip) + 8)
120 #define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
126 #define ICMP_ECHOREPLY 0
127 #define ICMP_UNREACH 3
128 #define ICMP_UNREACH_NET 0
129 #define ICMP_UNREACH_HOST 1
130 #define ICMP_UNREACH_PROTOCOL 2
131 #define ICMP_UNREACH_PORT 3
132 #define ICMP_UNREACH_NEEDFRAG 4
133 #define ICMP_UNREACH_SRCFAIL 5
134 #define ICMP_UNREACH_NET_UNKNOWN 6
135 #define ICMP_UNREACH_HOST_UNKNOWN 7
136 #define ICMP_UNREACH_ISOLATED 8
137 #define ICMP_UNREACH_NET_PROHIB 9
138 #define ICMP_UNREACH_HOST_PROHIB 10
139 #define ICMP_UNREACH_TOSNET 11
140 #define ICMP_UNREACH_TOSHOST 12
141 #define ICMP_SOURCEQUENCH 4
142 #define ICMP_REDIRECT 5
143 #define ICMP_REDIRECT_NET 0
144 #define ICMP_REDIRECT_HOST 1
145 #define ICMP_REDIRECT_TOSNET 2
146 #define ICMP_REDIRECT_TOSHOST 3
148 #define ICMP_ROUTERADVERT 9
149 #define ICMP_ROUTERSOLICIT 10
150 #define ICMP_TIMXCEED 11
151 #define ICMP_TIMXCEED_INTRANS 0
152 #define ICMP_TIMXCEED_REASS 1
153 #define ICMP_PARAMPROB 12
154 #define ICMP_PARAMPROB_OPTABSENT 1
155 #define ICMP_TSTAMP 13
156 #define ICMP_TSTAMPREPLY 14
158 #define ICMP_IREQREPLY 16
159 #define ICMP_MASKREQ 17
160 #define ICMP_MASKREPLY 18
162 #define ICMP_MAXTYPE 18
164 #define ICMP_INFOTYPE(type) \
165 ((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \
166 (type) == ICMP_ROUTERADVERT || (type) == ICMP_ROUTERSOLICIT || \
167 (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \
168 (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
169 (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
172 void icmp_error __P((
struct mbuf *,
int,
int, n_long,
struct ifnet *));
173 void icmp_input __P((
struct mbuf *, ...));
174 void icmp_reflect __P((
struct mbuf *));
175 void icmp_send __P((
struct mbuf *,
struct mbuf *));
176 int icmp_sysctl __P((
int *, u_int,
void *,
size_t *,
void *,
size_t));
struct icmp_ra_addr id_radv
struct icmp::@1::ih_pmtu ih_pmtu
struct icmp::@1::ih_idseq ih_idseq
struct icmp::@1::ih_rtradv ih_rtradv
struct icmp::@2::id_ts id_ts
struct icmp::@2::id_ip id_ip