Searched refs:IP_HDRINCL (Results 1 - 9 of 9) sorted by relevance
/freebsd-11-stable/tools/regression/netinet/ipsockopt/ |
H A D | ipsockopt.c | 204 * This test checks the behavior of the IP_HDRINCL socket option, which 221 * Try to receive or set the IP_HDRINCL flag on a TCP socket. 229 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) 230 err(-1, "test_ip_hdrincl(): initial getsockopt(IP_HDRINCL)"); 238 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) 240 err(-1,"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on TCP " 244 errx(-1, "test_ip_hdrincl(): setsockopt(IP_HDRINCL) on TCP " 251 * Try to receive or set the IP_HDRINCL flag on a UDP socket. 259 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) 260 err(-1, "test_ip_hdrincl(): getsockopt(IP_HDRINCL) o [all...] |
/freebsd-11-stable/tools/tools/net80211/wesside/dics/ |
H A D | dics.c | 362 if (setsockopt(s, IPPROTO_IP, IP_HDRINCL, &rd, sizeof(rd)) == -1) {
|
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/ |
H A D | t_ping.c | 376 RL(rump_sys_setsockopt(s, IPPROTO_IP, IP_HDRINCL, &x, sizeof(x)));
|
/freebsd-11-stable/sys/netinet/ |
H A D | in.h | 408 #define IP_HDRINCL 2 /* int; header is included with data */ macro
|
H A D | raw_ip.c | 619 case IP_HDRINCL: 672 case IP_HDRINCL:
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | bpf.c | 173 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, &on, 175 error("setsockopt(IP_HDRINCL): %m");
|
/freebsd-11-stable/contrib/traceroute/ |
H A D | traceroute.c | 893 #ifdef IP_HDRINCL 894 if (setsockopt(sndsock, IPPROTO_IP, IP_HDRINCL, (char *)&on, 896 Fprintf(stderr, "%s: IP_HDRINCL: %s\n", prog, strerror(errno)); 1325 #if !defined(IP_HDRINCL) && defined(IP_TTL)
|
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_socket.c | 286 return (IP_HDRINCL); 630 /* Return 0 if IP_HDRINCL is set for the given socket. */ 638 error = kern_getsockopt(td, s, IPPROTO_IP, IP_HDRINCL, 647 * Updated sendto() when IP_HDRINCL is set: 720 /* It's a raw IP socket: set the IP_HDRINCL option. */ 725 kern_setsockopt(td, td->td_retval[0], IPPROTO_IP, IP_HDRINCL, 1024 /* IP_HDRINCL set, tweak the packet before sending */
|
/freebsd-11-stable/sbin/ping/ |
H A D | ping.c | 712 setsockopt(ssend, IPPROTO_IP, IP_HDRINCL, &hold, sizeof(hold));
|
Completed in 139 milliseconds