| /NextBSD/contrib/ipfilter/ipsend/ |
| HD | iptests.c | 125 void ip_test1(dev, mtu, ip, gwip, ptest) in ip_test1() argument 129 struct in_addr gwip; 167 (void) send_ip(nfd, 1500, ip, gwip, 1); 183 (void) send_ip(nfd, 1500, ip, gwip, 1); 200 (void) send_ip(nfd, 1500, ip, gwip, 1); 216 (void) send_ip(nfd, 1500, ip, gwip, 1); 236 (void) send_ether(nfd, (char *)ip, i, gwip); 248 (void) send_ether(nfd, (char *)ip, len, gwip); 267 (void) send_ether(nfd, (char *)ip, len, gwip); 279 (void) send_ether(nfd, (char *)ip, i, gwip); [all …]
|
| HD | iptest.c | 92 struct in_addr gwip; local 168 gwip = ip->ip_dst; 169 else if (resolve(gateway, (char *)&gwip) == -1) 181 printf("Gateway: %s\n", inet_ntoa(gwip)); 187 ip_test1(dev, mtu, (ip_t *)ti, gwip, pointtest); 190 ip_test2(dev, mtu, (ip_t *)ti, gwip, pointtest); 193 ip_test3(dev, mtu, (ip_t *)ti, gwip, pointtest); 196 ip_test4(dev, mtu, (ip_t *)ti, gwip, pointtest); 199 ip_test5(dev, mtu, (ip_t *)ti, gwip, pointtest); 202 ip_test6(dev, mtu, (ip_t *)ti, gwip, pointtest); [all …]
|
| HD | ip.c | 51 int send_ether(nfd, buf, len, gwip) in send_ether() argument 54 struct in_addr gwip; 68 if (gwip.s_addr == last_gw.s_addr) 72 else if (arp((char *)&gwip, (char *)A_A eh->ether_dhost) == -1) 78 last_gw.s_addr = gwip.s_addr; 86 int send_ip(nfd, mtu, ip, gwip, frag) in send_ip() argument 89 struct in_addr gwip; 113 if (last_gw.s_addr && (gwip.s_addr == last_gw.s_addr)) 117 else if (arp((char *)&gwip, (char *)A_A eh->ether_dhost) == -1) 126 last_gw.s_addr = gwip.s_addr; [all …]
|
| HD | ipresend.c | 89 struct in_addr gwip; local 136 gwip.s_addr = 0; 137 if (gateway && resolve(gateway, (char *)&gwip) == -1) 147 printf("Gateway: %s\n", inet_ntoa(gwip)); 150 return ip_resend(dev, mtu, ipr, gwip, resend);
|
| HD | resend.c | 68 int ip_resend(dev, mtu, r, gwip, datain) in ip_resend() argument 71 struct in_addr gwip; 101 if (gwip.s_addr && (arp((char *)&gwip, dhost) == -1)) 114 if (!gwip.s_addr) { 115 if (arp((char *)&gwip,
|
| HD | ipsend.c | 149 int send_packets(dev, mtu, ip, gwip) in send_packets() argument 153 struct in_addr gwip; 160 return send_packet(wfd, mtu, ip, gwip); 200 struct in_addr gwip; local 362 gwip = ip->ip_dst; 363 else if (resolve(gateway, (char *)&gwip) == -1) 426 printf("Gateway: %s\n", inet_ntoa(gwip)); 437 return do_socket(dev, mtu, ip, gwip); 439 return send_packets(dev, mtu, ip, gwip);
|
| HD | lsock.c | 191 int do_socket(dev, mtu, ti, gwip) in do_socket() argument 195 struct in_addr gwip; 253 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1)
|
| HD | sock.c | 388 int do_socket(dev, mtu, ti, gwip) in do_socket() argument 392 struct in_addr gwip; 451 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1)
|
| /NextBSD/contrib/ipfilter/iplang/ |
| HD | iplang_y.y | 1283 struct in_addr gwip; in prep_packet() local 1292 gwip = sending.snd_gw; in prep_packet() 1293 if (!gwip.s_addr) { in prep_packet() 1299 gwip = aniphead->ah_ip->ip_dst; in prep_packet() 1301 (void) send_ip(ifp->if_fd, ifp->if_MTU, (ip_t *)ipbuffer, gwip, 2); in prep_packet()
|