Lines Matching refs:protinfo

113 	unsigned flags = skb->sk->protinfo.af_inet.cmsg_flags;  in ip_cmsg_recv()
236 if (!sk->protinfo.af_inet.recverr) in ip_icmp_error()
266 if (!sk->protinfo.af_inet.recverr) in ip_local_error()
344 if (sk->protinfo.af_inet.cmsg_flags) in ip_recv_error()
438 opt = xchg(&sk->protinfo.af_inet.opt, opt); in ip_setsockopt()
445 sk->protinfo.af_inet.cmsg_flags |= IP_CMSG_PKTINFO; in ip_setsockopt()
447 sk->protinfo.af_inet.cmsg_flags &= ~IP_CMSG_PKTINFO; in ip_setsockopt()
451 sk->protinfo.af_inet.cmsg_flags |= IP_CMSG_TTL; in ip_setsockopt()
453 sk->protinfo.af_inet.cmsg_flags &= ~IP_CMSG_TTL; in ip_setsockopt()
457 sk->protinfo.af_inet.cmsg_flags |= IP_CMSG_TOS; in ip_setsockopt()
459 sk->protinfo.af_inet.cmsg_flags &= ~IP_CMSG_TOS; in ip_setsockopt()
463 sk->protinfo.af_inet.cmsg_flags |= IP_CMSG_RECVOPTS; in ip_setsockopt()
465 sk->protinfo.af_inet.cmsg_flags &= ~IP_CMSG_RECVOPTS; in ip_setsockopt()
469 sk->protinfo.af_inet.cmsg_flags |= IP_CMSG_RETOPTS; in ip_setsockopt()
471 sk->protinfo.af_inet.cmsg_flags &= ~IP_CMSG_RETOPTS; in ip_setsockopt()
476 val |= sk->protinfo.af_inet.tos & 3; in ip_setsockopt()
483 if (sk->protinfo.af_inet.tos != val) { in ip_setsockopt()
484 sk->protinfo.af_inet.tos=val; in ip_setsockopt()
496 sk->protinfo.af_inet.ttl=val; in ip_setsockopt()
503 sk->protinfo.af_inet.hdrincl=val?1:0; in ip_setsockopt()
508 sk->protinfo.af_inet.pmtudisc = val; in ip_setsockopt()
511 sk->protinfo.af_inet.recverr = !!val; in ip_setsockopt()
524 sk->protinfo.af_inet.mc_ttl=val; in ip_setsockopt()
529 sk->protinfo.af_inet.mc_loop = val ? 1 : 0; in ip_setsockopt()
555 sk->protinfo.af_inet.mc_index = 0; in ip_setsockopt()
556 sk->protinfo.af_inet.mc_addr = 0; in ip_setsockopt()
577 sk->protinfo.af_inet.mc_index = mreq.imr_ifindex; in ip_setsockopt()
578 sk->protinfo.af_inet.mc_addr = mreq.imr_address.s_addr; in ip_setsockopt()
837 sk->protinfo.af_inet.freebind = !!val; in ip_setsockopt()
890 if (sk->protinfo.af_inet.opt) in ip_getsockopt()
891 memcpy(optbuf, sk->protinfo.af_inet.opt, in ip_getsockopt()
893 sk->protinfo.af_inet.opt->optlen); in ip_getsockopt()
909 val = (sk->protinfo.af_inet.cmsg_flags & IP_CMSG_PKTINFO) != 0; in ip_getsockopt()
912 val = (sk->protinfo.af_inet.cmsg_flags & IP_CMSG_TTL) != 0; in ip_getsockopt()
915 val = (sk->protinfo.af_inet.cmsg_flags & IP_CMSG_TOS) != 0; in ip_getsockopt()
918 val = (sk->protinfo.af_inet.cmsg_flags & IP_CMSG_RECVOPTS) != 0; in ip_getsockopt()
921 val = (sk->protinfo.af_inet.cmsg_flags & IP_CMSG_RETOPTS) != 0; in ip_getsockopt()
924 val=sk->protinfo.af_inet.tos; in ip_getsockopt()
927 val=sk->protinfo.af_inet.ttl; in ip_getsockopt()
930 val=sk->protinfo.af_inet.hdrincl; in ip_getsockopt()
933 val=sk->protinfo.af_inet.pmtudisc; in ip_getsockopt()
951 val=sk->protinfo.af_inet.recverr; in ip_getsockopt()
954 val=sk->protinfo.af_inet.mc_ttl; in ip_getsockopt()
957 val=sk->protinfo.af_inet.mc_loop; in ip_getsockopt()
963 addr.s_addr = sk->protinfo.af_inet.mc_addr; in ip_getsockopt()
1021 if (sk->protinfo.af_inet.cmsg_flags&IP_CMSG_PKTINFO) { in ip_getsockopt()
1026 info.ipi_ifindex = sk->protinfo.af_inet.mc_index; in ip_getsockopt()
1029 if (sk->protinfo.af_inet.cmsg_flags&IP_CMSG_TTL) { in ip_getsockopt()
1030 int hlim = sk->protinfo.af_inet.mc_ttl; in ip_getsockopt()
1037 val = sk->protinfo.af_inet.freebind; in ip_getsockopt()