Lines Matching defs:icmp_state
39 struct icmp_state *icmp_state;
43 OMAPI_OBJECT_ALLOC (icmp_state, struct icmp_state, dhcp_type_icmp)
67 sizeof (struct icmp_state),
74 icmp_state_allocate (&icmp_state, MDL);
75 icmp_state -> icmp_handler = handler;
95 icmp_state -> socket = socket (AF_INET, SOCK_RAW, protocol);
96 if (icmp_state -> socket < 0) {
103 if (fcntl (icmp_state -> socket, F_SETFD, 1) < 0)
109 if (setsockopt (icmp_state -> socket, SOL_SOCKET, SO_DONTROUTE,
114 ((omapi_object_t *)icmp_state,
127 struct icmp_state *state;
129 state = (struct icmp_state *)h;
145 if (!icmp_state)
194 status = sendto (icmp_state -> socket,
220 struct icmp_state *state;
225 state = (struct icmp_state *)h;
281 if (icmp_state -> icmp_handler)
282 (*icmp_state -> icmp_handler) (*ia, icbuf,