Lines Matching defs:packet
150 static int sendbcast(int s, char *packet, int packetlen);
151 static int sendbcastif(int s, char *packet, int packetlen,
153 static int sendmcast(int s, char *packet, int packetlen,
155 static int sendmcastif(int s, char *packet, int packetlen,
199 #define MAXPACKET 4096 /* max packet size */
200 uchar_t packet[MAXPACKET];
467 int len = sizeof (packet);
472 if ((cc = recvfrom(s, (char *)packet, len, 0,
483 pr_pack((char *)packet, cc, &from);
546 * Compose and transmit an ICMP ROUTER SOLICITATION REQUEST packet.
547 * The IP packet will be added on by the kernel.
602 * Compose and transmit an ICMP ROUTER ADVERTISEMENT packet.
603 * The IP packet will be added on by the kernel.
639 logdebug("full packet: %d addresses\n",
757 * Print out the packet, if it came from us. This logic is necessary
775 logtrace("packet too short (%d bytes) from %s\n", cc,
785 * recevied this packet.
787 * to determine which interface the packet is recevied.
1056 * Send out a packet with a preference so that all
1129 sendbcast(int s, char *packet, int packetlen)
1149 cc = sendbcastif(s, packet, packetlen, li);
1158 sendbcastif(int s, char *packet, int packetlen, struct logint *li)
1162 struct icmp *icp = (struct icmp *)ALIGN(packet);
1187 cc = sendto(s, packet, packetlen, 0,
1191 logerr("Cannot send broadcast packet to %s\n",
1198 sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *sin)
1218 cc = sendmcastif(s, packet, packetlen, sin, li);
1227 sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin,
1232 struct icmp *icp = (struct icmp *)ALIGN(packet);
1261 logerr("Cannot send multicast packet over interface %s\n",
1265 cc = sendto(s, packet, packetlen, 0,
1269 logerr("Cannot send multicast packet over interface %s\n",