Lines Matching defs:from
7 * This code is derived from software contributed to Berkeley by
19 * may be used to endorse or promote products derived from this software
211 struct sockaddr_in from, sock_in;
258 * from different addresses, not from the address we
861 (void)printf(" from %s", shostname);
898 msg.msg_name = (caddr_t)&from;
957 msg.msg_namelen = sizeof(from);
964 /* If we have a 0 byte read from recvfrom continue */
981 pr_pack((char *)packet, cc, &from, tv);
1123 * Print out the packet, if it came from us. This logic is necessary
1129 pr_pack(char *buf, ssize_t cc, struct sockaddr_in *from, struct timespec *tv)
1162 warn("IHL too short (%d bytes) from %s", hlen,
1163 inet_ntoa(from->sin_addr));
1173 warn("packet too short (%zd bytes) from %s", cc,
1174 inet_ntoa(from->sin_addr));
1243 (void)printf("%zd bytes from %s: icmp_seq=%u", cc,
1244 pr_addr(from->sin_addr), seq);
1321 warnx("quoted data too short (%zd bytes) from %s",
1322 icmp_data_raw_len, inet_ntoa(from->sin_addr));
1332 warnx("inner IHL too short (%d bytes) from %s",
1333 oip_header_len, inet_ntoa(from->sin_addr));
1344 warnx("inner packet too short (%zd bytes) from %s",
1345 icmp_data_raw_len, inet_ntoa(from->sin_addr));
1359 (void)printf("%zd bytes from %s: ", cc,
1360 pr_addr(from->sin_addr));