Lines Matching refs:protocol
64 /* Initialize the ICMP protocol. */
70 int protocol = 1, state;
74 fatalx("attempted to reinitialize icmp protocol");
77 /* Get the protocol number (should be 1). */
79 protocol = proto->p_proto;
81 /* Get a raw socket for the ICMP protocol. */
82 if ((icmp_protocol_fd = socket(AF_INET, SOCK_RAW, protocol)) == -1)
103 fatalx("attempt to use ICMP protocol before initialization.");
129 icmp_echoreply(struct protocol *protocol)
140 status = recvfrom(protocol->fd, icbuf, sizeof(icbuf), 0,
159 if (protocol->local) {
161 protocol->local);