• Home
  • Raw
  • Download

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