Home | History | Annotate | Download | only in iputils

Lines Matching defs:packetlen

100 static int sendbcast(int s, char *packet, int packetlen);
101 static int sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *);
102 static int sendbcastif(int s, char *packet, int packetlen, struct interface *ifp);
103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interface *ifp);
544 int packetlen, i;
554 packetlen = 8;
557 icp->checksum = in_cksum( (u_short *)icp, packetlen );
560 i = sendbcast(s, (char *)outpack, packetlen);
562 i = sendmcast(s, (char *)outpack, packetlen, sin);
564 i = sendto( s, (char *)outpack, packetlen, 0,
567 if( i < 0 || i != packetlen ) {
572 sendaddress, packetlen, i );
589 int packetlen, i, cc;
603 packetlen = 8;
613 packetlen += rap->icmp_wpa * 4;
617 rap->icmp_cksum = in_cksum( (u_short *)rap, packetlen );
620 cc = sendbcastif(s, (char *)outpack, packetlen,
623 cc = sendmcastif( s, (char *)outpack, packetlen, sin,
640 cc = sendto( s, (char *)outpack, packetlen, 0,
644 cc = packetlen;
646 if( cc < 0 || cc != packetlen ) {
651 sendaddress, packetlen, cc );
997 sendbcast(int s, char *packet, int packetlen)
1004 cc = sendbcastif(s, packet, packetlen, &interfaces[i]);
1005 if (cc!= packetlen) {
1009 return (packetlen);
1013 sendbcastif(int s, char *packet, int packetlen, struct interface *ifp)
1026 cc = sendto(s, packet, packetlen, 0,
1028 if (cc!= packetlen) {
1039 sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *sin)
1046 cc = sendmcastif(s, packet, packetlen, sin, &interfaces[i]);
1047 if (cc!= packetlen) {
1051 return (packetlen);
1055 sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin,
1077 cc = sendto(s, packet, packetlen, 0,
1079 if (cc!= packetlen) {