• Home
  • Raw
  • Download

Lines Matching refs:addr

311                struct sockaddr_in *addr)  in udp_output()  argument
316 saddr = *addr; in udp_output()
320 else if (addr->sin_addr.s_addr == loopback_addr.s_addr || in udp_output()
333 struct sockaddr_in addr; in udp_attach() local
341 addr.sin_family = AF_INET; in udp_attach()
342 addr.sin_port = 0; in udp_attach()
343 addr.sin_addr.s_addr = INADDR_ANY; in udp_attach()
344 if(bind(so->s, (struct sockaddr *)&addr, sizeof(addr))<0) { in udp_attach()
406 struct sockaddr_in addr; in udp_emu() local
407 socklen_t addrlen = sizeof(addr); in udp_emu()
448 if (getsockname(so->s, (struct sockaddr *)&addr, &addrlen) < 0) in udp_emu()
456 dest->addr = src->addr; \ in udp_emu()
470 OTOSIN(omsg, ctl_addr)->sin_port = addr.sin_port; in udp_emu()
477 OTOSIN(nmsg, ctl_addr)->sin_port = addr.sin_port; in udp_emu()
518 OTOSIN(omsg, addr)->sin_addr.s_addr, in udp_emu()
519 OTOSIN(omsg, addr)->sin_port, in udp_emu()
526 addrlen = sizeof(addr); in udp_emu()
528 (struct sockaddr *) &addr, in udp_emu()
530 OTOSIN(omsg, addr)->sin_port = addr.sin_port; in udp_emu()
531 OTOSIN(omsg, addr)->sin_addr = our_addr; in udp_emu()
532 OTOSIN(nmsg, addr)->sin_port = addr.sin_port; in udp_emu()
533 OTOSIN(nmsg, addr)->sin_addr = our_addr; in udp_emu()
542 addr.sin_addr = our_addr; in udp_emu()
543 addr.sin_family = AF_INET; in udp_emu()
544 addr.sin_port = htons(517); in udp_emu()
546 (struct sockaddr *)&addr, sizeof(addr)); in udp_emu()
547 addr.sin_port = htons(518); in udp_emu()
549 (struct sockaddr *) &addr, sizeof(addr)); in udp_emu()
573 addr.sin_addr = our_addr; in udp_emu()
574 addr.sin_family = AF_INET; in udp_emu()
575 addr.sin_port = htons(517); in udp_emu()
577 (struct sockaddr *)&addr, sizeof(addr)); in udp_emu()
578 addr.sin_port = htons(518); in udp_emu()
580 (struct sockaddr *)&addr, sizeof(addr)); in udp_emu()
618 if (getsockname(so->s, (struct sockaddr *)&addr, &addrlen) < 0) in udp_emu()
621 cu_head->s_port = addr.sin_port; in udp_emu()
632 struct sockaddr_in addr; in udp_listen() local
644 addr.sin_family = AF_INET; in udp_listen()
645 addr.sin_addr.s_addr = INADDR_ANY; in udp_listen()
646 addr.sin_port = port; in udp_listen()
648 if (bind(so->s,(struct sockaddr *)&addr, addrlen) < 0) { in udp_listen()
655 getsockname(so->s,(struct sockaddr *)&addr,&addrlen); in udp_listen()
656 so->so_fport = addr.sin_port; in udp_listen()
657 if (addr.sin_addr.s_addr == 0 || addr.sin_addr.s_addr == loopback_addr.s_addr) in udp_listen()
660 so->so_faddr = addr.sin_addr; in udp_listen()