Lines Matching refs:cmsg_flags

175 	unsigned int flags = inet->cmsg_flags;
570 if (inet_sk(sk)->cmsg_flags)
637 inet_sk(sk)->cmsg_flags |= IP_CMSG_PKTINFO;
990 inet->cmsg_flags |= IP_CMSG_PKTINFO;
992 inet->cmsg_flags &= ~IP_CMSG_PKTINFO;
996 inet->cmsg_flags |= IP_CMSG_TTL;
998 inet->cmsg_flags &= ~IP_CMSG_TTL;
1002 inet->cmsg_flags |= IP_CMSG_TOS;
1004 inet->cmsg_flags &= ~IP_CMSG_TOS;
1008 inet->cmsg_flags |= IP_CMSG_RECVOPTS;
1010 inet->cmsg_flags &= ~IP_CMSG_RECVOPTS;
1014 inet->cmsg_flags |= IP_CMSG_RETOPTS;
1016 inet->cmsg_flags &= ~IP_CMSG_RETOPTS;
1020 inet->cmsg_flags |= IP_CMSG_PASSSEC;
1022 inet->cmsg_flags &= ~IP_CMSG_PASSSEC;
1026 inet->cmsg_flags |= IP_CMSG_ORIGDSTADDR;
1028 inet->cmsg_flags &= ~IP_CMSG_ORIGDSTADDR;
1032 if (!(inet->cmsg_flags & IP_CMSG_CHECKSUM)) {
1034 inet->cmsg_flags |= IP_CMSG_CHECKSUM;
1037 if (inet->cmsg_flags & IP_CMSG_CHECKSUM) {
1039 inet->cmsg_flags &= ~IP_CMSG_CHECKSUM;
1047 inet->cmsg_flags |= IP_CMSG_RECVFRAGSIZE;
1049 inet->cmsg_flags &= ~IP_CMSG_RECVFRAGSIZE;
1393 bool prepare = (inet_sk(sk)->cmsg_flags & IP_CMSG_PKTINFO) ||
1574 val = (inet->cmsg_flags & IP_CMSG_PKTINFO) != 0;
1577 val = (inet->cmsg_flags & IP_CMSG_TTL) != 0;
1580 val = (inet->cmsg_flags & IP_CMSG_TOS) != 0;
1583 val = (inet->cmsg_flags & IP_CMSG_RECVOPTS) != 0;
1586 val = (inet->cmsg_flags & IP_CMSG_RETOPTS) != 0;
1589 val = (inet->cmsg_flags & IP_CMSG_PASSSEC) != 0;
1592 val = (inet->cmsg_flags & IP_CMSG_ORIGDSTADDR) != 0;
1595 val = (inet->cmsg_flags & IP_CMSG_CHECKSUM) != 0;
1598 val = (inet->cmsg_flags & IP_CMSG_RECVFRAGSIZE) != 0;
1706 if (inet->cmsg_flags & IP_CMSG_PKTINFO) {
1714 if (inet->cmsg_flags & IP_CMSG_TTL) {
1718 if (inet->cmsg_flags & IP_CMSG_TOS) {