Lines Matching refs:sockaddr_in
87 static int join(int sock, struct sockaddr_in *sin);
88 static void solicitor(struct sockaddr_in *);
90 static void advertise(struct sockaddr_in *, int lft);
93 static void pr_pack(char *buf, int cc, struct sockaddr_in *from);
101 static int sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *);
103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interfac…
174 struct sockaddr_in whereto;/* Address to send to */
222 static __inline__ int isbroadcast(struct sockaddr_in *sin) in isbroadcast()
227 static __inline__ int ismulticast(struct sockaddr_in *sin) in ismulticast()
288 struct sockaddr_in from; in main()
290 struct sockaddr_in *to = &whereto; in main()
291 struct sockaddr_in joinaddr; in main()
421 memset( (char *)&whereto, 0, sizeof(struct sockaddr_in) ); in main()
425 memset( (char *)&joinaddr, 0, sizeof(struct sockaddr_in) ); in main()
540 solicitor(struct sockaddr_in *sin) in solicitor()
584 advertise(struct sockaddr_in *sin, int lft) in advertise()
720 pr_pack(char *buf, int cc, struct sockaddr_in *from) in pr_pack()
832 struct sockaddr_in sin; in pr_pack()
1017 struct sockaddr_in baddr; in sendbcastif()
1039 sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *sin) in sendmcast()
1055 sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, in sendmcastif()
1106 struct sockaddr_in *sin; in initifs()
1170 sin = (struct sockaddr_in *)ALLIGN(&ifr->ifr_addr); in initifs()
1184 sin = (struct sockaddr_in *)ALLIGN(&ifreq.ifr_addr); in initifs()
1199 sin = (struct sockaddr_in *)ALLIGN(&ifreq.ifr_addr); in initifs()
1206 sin = (struct sockaddr_in *)ALLIGN(&ifreq.ifr_addr); in initifs()
1228 join(int sock, struct sockaddr_in *sin) in join()
1494 struct sockaddr_in *sin; in rtioctl()
1500 sin = (struct sockaddr_in *)ALLIGN(&rt.rt_gateway); in rtioctl()