Home
last modified time | relevance | path

Searched refs:gwip (Results 1 – 8 of 8) sorted by relevance

/freebsd/sbin/ipf/ipsend/
H A Diptests.c94 ip_test1(char *dev, int mtu, ip_t *ip, struct in_addr gwip, int ptest) in ip_test1() argument
131 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1()
147 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1()
164 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1()
180 (void) send_ip(nfd, 1500, ip, gwip, 1); in ip_test1()
200 (void) send_ether(nfd, (char *)ip, i, gwip); in ip_test1()
212 (void) send_ether(nfd, (char *)ip, len, gwip); in ip_test1()
231 (void) send_ether(nfd, (char *)ip, len, gwip); in ip_test1()
243 (void) send_ether(nfd, (char *)ip, i, gwip); in ip_test1()
259 (void) send_ip(nfd, mtu, ip, gwip, 1); in ip_test1()
[all …]
H A Diptest.c65 struct in_addr gwip; in main() local
141 gwip = ip->ip_dst; in main()
142 else if (resolve(gateway, (char *)&gwip) == -1) in main()
154 printf("Gateway: %s\n", inet_ntoa(gwip)); in main()
160 ip_test1(dev, mtu, (ip_t *)ti, gwip, pointtest); in main()
163 ip_test2(dev, mtu, (ip_t *)ti, gwip, pointtest); in main()
166 ip_test3(dev, mtu, (ip_t *)ti, gwip, pointtest); in main()
169 ip_test4(dev, mtu, (ip_t *)ti, gwip, pointtest); in main()
172 ip_test5(dev, mtu, (ip_t *)ti, gwip, pointtest); in main()
175 ip_test6(dev, mtu, (ip_t *)ti, gwip, pointtest); in main()
[all …]
H A Dip.c44 send_ether(int nfd, char *buf, int len, struct in_addr gwip) in send_ether() argument
58 if (gwip.s_addr == last_gw.s_addr) in send_ether()
62 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1) in send_ether()
68 last_gw.s_addr = gwip.s_addr; in send_ether()
77 send_ip(int nfd, int mtu, ip_t *ip, struct in_addr gwip, int frag) in send_ip() argument
100 if (last_gw.s_addr && (gwip.s_addr == last_gw.s_addr)) in send_ip()
104 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1) in send_ip()
113 last_gw.s_addr = gwip.s_addr; in send_ip()
235 send_tcp(int nfd, int mtu, ip_t *ip, struct in_addr gwip) in send_tcp() argument
278 return (send_ip(nfd, mtu, ip, gwip, 1)); in send_tcp()
[all …]
H A Dipresend.c65 struct in_addr gwip; in main() local
112 gwip.s_addr = 0; in main()
113 if (gateway && resolve(gateway, (char *)&gwip) == -1) in main()
123 printf("Gateway: %s\n", inet_ntoa(gwip)); in main()
126 return (ip_resend(dev, mtu, ipr, gwip, resend)); in main()
H A Dresend.c62 ip_resend(char *dev, int mtu, struct ipread *r, struct in_addr gwip, in ip_resend() argument
91 if (gwip.s_addr && (arp((char *)&gwip, dhost) == -1)) in ip_resend()
104 if (!gwip.s_addr) { in ip_resend()
105 if (arp((char *)&gwip, in ip_resend()
H A Dipsend.c120 send_packets(char *dev, int mtu, ip_t *ip, struct in_addr gwip) in send_packets() argument
127 return (send_packet(wfd, mtu, ip, gwip)); in send_packets()
166 struct in_addr gwip; in main() local
328 gwip = ip->ip_dst; in main()
329 else if (resolve(gateway, (char *)&gwip) == -1) in main()
401 printf("Gateway: %s\n", inet_ntoa(gwip)); in main()
412 return (do_socket(dev, mtu, ip, gwip)); in main()
414 return (send_packets(dev, mtu, ip, gwip)); in main()
H A Dsock.c244 do_socket(char *dev, int mtu, struct tcpiphdr *ti, struct in_addr gwip) in do_socket() argument
303 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1) in do_socket()
/freebsd/sbin/ipf/iplang/
H A Diplang_y.y1216 struct in_addr gwip; in prep_packet() local
1225 gwip = sending.snd_gw; in prep_packet()
1226 if (!gwip.s_addr) { in prep_packet()
1232 gwip = aniphead->ah_ip->ip_dst; in prep_packet()
1234 (void) send_ip(ifp->if_fd, ifp->if_MTU, (ip_t *)ipbuffer, gwip, 2); in prep_packet()