| /freebsd-14-stable/sbin/ipf/ipsend/ |
| HD | iptests.c | 98 ip_test1(char *dev, int mtu, ip_t *ip, struct in_addr gwip, int ptest) in ip_test1() argument 135 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1() 151 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1() 168 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1() 184 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1() 204 (void) send_ether(nfd, (char *)ip, i, gwip); in ip_test1() 216 (void) send_ether(nfd, (char *)ip, len, gwip); in ip_test1() 235 (void) send_ether(nfd, (char *)ip, len, gwip); in ip_test1() 247 (void) send_ether(nfd, (char *)ip, i, gwip); in ip_test1() 263 (void) send_ip(nfd, mtu, ip, gwip, 1); in ip_test1() [all …]
|
| HD | iptest.c | 69 struct in_addr gwip; in main() local 145 gwip = ip->ip_dst; in main() 146 else if (resolve(gateway, (char *)&gwip) == -1) in main() 158 printf("Gateway: %s\n", inet_ntoa(gwip)); in main() 164 ip_test1(dev, mtu, (ip_t *)ti, gwip, pointtest); in main() 167 ip_test2(dev, mtu, (ip_t *)ti, gwip, pointtest); in main() 170 ip_test3(dev, mtu, (ip_t *)ti, gwip, pointtest); in main() 173 ip_test4(dev, mtu, (ip_t *)ti, gwip, pointtest); in main() 176 ip_test5(dev, mtu, (ip_t *)ti, gwip, pointtest); in main() 179 ip_test6(dev, mtu, (ip_t *)ti, gwip, pointtest); in main() [all …]
|
| HD | ip.c | 48 send_ether(int nfd, char *buf, int len, struct in_addr gwip) in send_ether() argument 62 if (gwip.s_addr == last_gw.s_addr) in send_ether() 66 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1) in send_ether() 72 last_gw.s_addr = gwip.s_addr; in send_ether() 81 send_ip(int nfd, int mtu, ip_t *ip, struct in_addr gwip, int frag) in send_ip() argument 104 if (last_gw.s_addr && (gwip.s_addr == last_gw.s_addr)) in send_ip() 108 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1) in send_ip() 117 last_gw.s_addr = gwip.s_addr; in send_ip() 239 send_tcp(int nfd, int mtu, ip_t *ip, struct in_addr gwip) in send_tcp() argument 282 return (send_ip(nfd, mtu, ip, gwip, 1)); in send_tcp() [all …]
|
| HD | ipresend.c | 69 struct in_addr gwip; in main() local 116 gwip.s_addr = 0; in main() 117 if (gateway && resolve(gateway, (char *)&gwip) == -1) in main() 127 printf("Gateway: %s\n", inet_ntoa(gwip)); in main() 130 return (ip_resend(dev, mtu, ipr, gwip, resend)); in main()
|
| HD | resend.c | 66 ip_resend(char *dev, int mtu, struct ipread *r, struct in_addr gwip, in ip_resend() argument 95 if (gwip.s_addr && (arp((char *)&gwip, dhost) == -1)) in ip_resend() 108 if (!gwip.s_addr) { in ip_resend() 109 if (arp((char *)&gwip, in ip_resend()
|
| HD | ipsend.c | 124 send_packets(char *dev, int mtu, ip_t *ip, struct in_addr gwip) in send_packets() argument 131 return (send_packet(wfd, mtu, ip, gwip)); in send_packets() 170 struct in_addr gwip; in main() local 332 gwip = ip->ip_dst; in main() 333 else if (resolve(gateway, (char *)&gwip) == -1) in main() 396 printf("Gateway: %s\n", inet_ntoa(gwip)); in main() 407 return (do_socket(dev, mtu, ip, gwip)); in main() 409 return (send_packets(dev, mtu, ip, gwip)); in main()
|
| HD | sock.c | 248 do_socket(char *dev, int mtu, struct tcpiphdr *ti, struct in_addr gwip) in do_socket() argument 307 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1) in do_socket()
|
| /freebsd-14-stable/sbin/ipf/iplang/ |
| HD | iplang_y.y | 1215 struct in_addr gwip; in prep_packet() local 1224 gwip = sending.snd_gw; in prep_packet() 1225 if (!gwip.s_addr) { in prep_packet() 1231 gwip = aniphead->ah_ip->ip_dst; in prep_packet() 1233 (void) send_ip(ifp->if_fd, ifp->if_MTU, (ip_t *)ipbuffer, gwip, 2); in prep_packet()
|