/linux-2.4.37.9/arch/sparc64/solaris/ |
D | socket.c | 57 static int solaris_to_linux_sockopt(int optname) in solaris_to_linux_sockopt() argument 59 switch (optname) { in solaris_to_linux_sockopt() 60 case SOL_SO_SNDLOWAT: optname = SO_SNDLOWAT; break; in solaris_to_linux_sockopt() 61 case SOL_SO_RCVLOWAT: optname = SO_RCVLOWAT; break; in solaris_to_linux_sockopt() 62 case SOL_SO_SNDTIMEO: optname = SO_SNDTIMEO; break; in solaris_to_linux_sockopt() 63 case SOL_SO_RCVTIMEO: optname = SO_RCVTIMEO; break; in solaris_to_linux_sockopt() 64 case SOL_SO_STATE: optname = SO_STATE; break; in solaris_to_linux_sockopt() 67 return optname; in solaris_to_linux_sockopt() 103 asmlinkage int solaris_setsockopt(int fd, int level, int optname, u32 optval, int optlen) in solaris_setsockopt() argument 108 optname = solaris_to_linux_sockopt(optname); in solaris_setsockopt() [all …]
|
/linux-2.4.37.9/net/ipv6/ |
D | ipv6_sockglue.c | 131 int ipv6_setsockopt(struct sock *sk, int level, int optname, char *optval, in ipv6_setsockopt() argument 139 return udp_prot.setsockopt(sk, level, optname, optval, optlen); in ipv6_setsockopt() 153 switch (optname) { in ipv6_setsockopt() 365 if (optname == IPV6_ADD_MEMBERSHIP) in ipv6_setsockopt() 383 if (optname == IPV6_JOIN_ANYCAST) in ipv6_setsockopt() 403 if (optname == MCAST_JOIN_GROUP) in ipv6_setsockopt() 430 if (optname == MCAST_BLOCK_SOURCE) { in ipv6_setsockopt() 433 } else if (optname == MCAST_UNBLOCK_SOURCE) { in ipv6_setsockopt() 436 } else if (optname == MCAST_JOIN_SOURCE_GROUP) { in ipv6_setsockopt() 523 retv = nf_setsockopt(sk, PF_INET6, optname, optval, in ipv6_setsockopt() [all …]
|
D | raw.c | 657 static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, in rawv6_seticmpfilter() argument 660 switch (optname) { in rawv6_seticmpfilter() 674 static int rawv6_geticmpfilter(struct sock *sk, int level, int optname, in rawv6_geticmpfilter() argument 679 switch (optname) { in rawv6_geticmpfilter() 700 static int rawv6_setsockopt(struct sock *sk, int level, int optname, in rawv6_setsockopt() argument 713 return rawv6_seticmpfilter(sk, level, optname, optval, in rawv6_setsockopt() 716 if (optname == IPV6_CHECKSUM) in rawv6_setsockopt() 719 return ipv6_setsockopt(sk, level, optname, optval, in rawv6_setsockopt() 726 switch (optname) { in rawv6_setsockopt() 747 static int rawv6_getsockopt(struct sock *sk, int level, int optname, in rawv6_getsockopt() argument [all …]
|
/linux-2.4.37.9/net/ipv4/ |
D | ip_sockglue.c | 378 int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) in ip_setsockopt() argument 385 if (((1<<optname) & ((1<<IP_PKTINFO) | (1<<IP_RECVTTL) | in ip_setsockopt() 391 optname == IP_MULTICAST_TTL || in ip_setsockopt() 392 optname == IP_MULTICAST_LOOP) { in ip_setsockopt() 408 if (optname >= MRT_BASE && optname <= (MRT_BASE + 10)) in ip_setsockopt() 409 return ip_mroute_setsockopt(sk,optname,optval,optlen); in ip_setsockopt() 415 switch (optname) { in ip_setsockopt() 600 if (optname == IP_ADD_MEMBERSHIP) in ip_setsockopt() 658 if (optname == IP_BLOCK_SOURCE) { in ip_setsockopt() 661 } else if (optname == IP_UNBLOCK_SOURCE) { in ip_setsockopt() [all …]
|
D | raw.c | 570 static int raw_setsockopt(struct sock *sk, int level, int optname, in raw_setsockopt() argument 574 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 576 if (optname == ICMP_FILTER) { in raw_setsockopt() 585 static int raw_getsockopt(struct sock *sk, int level, int optname, in raw_getsockopt() argument 589 return ip_getsockopt(sk, level, optname, optval, optlen); in raw_getsockopt() 591 if (optname == ICMP_FILTER) { in raw_getsockopt()
|
D | ipmr.c | 849 int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen) in ip_mroute_setsockopt() argument 855 if(optname!=MRT_INIT) in ip_mroute_setsockopt() 861 switch(optname) in ip_mroute_setsockopt() 898 if (optname==MRT_ADD_VIF) { in ip_mroute_setsockopt() 917 if (optname==MRT_DEL_MFC) in ip_mroute_setsockopt() 969 int ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen) in ip_mroute_getsockopt() argument 974 if(optname!=MRT_VERSION && in ip_mroute_getsockopt() 976 optname!=MRT_PIM && in ip_mroute_getsockopt() 978 optname!=MRT_ASSERT) in ip_mroute_getsockopt() 990 if(optname==MRT_VERSION) in ip_mroute_getsockopt() [all …]
|
/linux-2.4.37.9/net/atm/ |
D | pvc.c | 63 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt() argument 70 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt() 76 static int pvc_getsockopt(struct socket *sock, int level, int optname, in pvc_getsockopt() argument 83 error = vcc_getsockopt(sock, level, optname, optval, optlen); in pvc_getsockopt()
|
D | svc.c | 468 static int svc_setsockopt(struct socket *sock,int level,int optname, in svc_setsockopt() argument 475 if (!__SO_LEVEL_MATCH(optname, level) || optname != SO_ATMSAP || in svc_setsockopt() 477 error = vcc_setsockopt(sock, level, optname, optval, optlen); in svc_setsockopt() 492 static int svc_getsockopt(struct socket *sock,int level,int optname, in svc_getsockopt() argument 499 if (!__SO_LEVEL_MATCH(optname, level) || optname != SO_ATMSAP) { in svc_getsockopt() 500 error = vcc_getsockopt(sock, level, optname, optval, optlen); in svc_getsockopt()
|
D | common.h | 22 int vcc_setsockopt(struct socket *sock, int level, int optname, char *optval, 24 int vcc_getsockopt(struct socket *sock, int level, int optname, char *optval,
|
D | common.c | 990 int vcc_setsockopt(struct socket *sock, int level, int optname, in vcc_setsockopt() argument 997 if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname)) in vcc_setsockopt() 1001 switch (optname) { in vcc_setsockopt() 1029 return vcc->dev->ops->setsockopt(vcc,level,optname,optval,optlen); in vcc_setsockopt() 1033 int vcc_getsockopt(struct socket *sock, int level, int optname, in vcc_getsockopt() argument 1041 if (__SO_LEVEL_MATCH(optname, level) && len != __SO_SIZE(optname)) in vcc_getsockopt() 1045 switch (optname) { in vcc_getsockopt() 1073 return vcc->dev->ops->getsockopt(vcc, level, optname, optval, len); in vcc_getsockopt()
|
/linux-2.4.37.9/arch/x86_64/ia32/ |
D | socket32.c | 503 extern asmlinkage int sys_setsockopt(int fd, int level, int optname, 506 static int do_set_attach_filter(int fd, int level, int optname, in do_set_attach_filter() argument 529 ret = sys_setsockopt(fd, level, optname, in do_set_attach_filter() 536 static int do_set_icmpv6_filter(int fd, int level, int optname, in do_set_icmpv6_filter() argument 556 ret = sys_setsockopt(fd, level, optname, in do_set_icmpv6_filter() 563 asmlinkage long sys32_setsockopt(int fd, int level, int optname, in sys32_setsockopt() argument 566 if (level == SOL_SOCKET && optname == SO_ATTACH_FILTER) in sys32_setsockopt() 567 return do_set_attach_filter(fd, level, optname, in sys32_setsockopt() 569 if (level == SOL_ICMPV6 && optname == ICMPV6_FILTER) in sys32_setsockopt() 570 return do_set_icmpv6_filter(fd, level, optname, in sys32_setsockopt() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | net.h | 105 int (*setsockopt) (struct socket *sock, int level, int optname, 107 int (*getsockopt) (struct socket *sock, int level, int optname, 196 SOCKCALL_WRAP(name, setsockopt, (struct socket *sock, int level, int optname, \ 197 char *optval, int optlen), (sock, level, optname, optval, optlen)) \ 198 SOCKCALL_WRAP(name, getsockopt, (struct socket *sock, int level, int optname, \ 199 char *optval, int *optlen), (sock, level, optname, optval, optlen)) \
|
D | atmdev.h | 360 int (*getsockopt)(struct atm_vcc *vcc,int level,int optname, 362 int (*setsockopt)(struct atm_vcc *vcc,int level,int optname,
|
/linux-2.4.37.9/fs/intermezzo/ |
D | sysctl.c | 146 switch(opt->optname) { in dosetopt() 200 minor, opt->optname); in dosetopt() 215 switch(opt->optname) { in dogetopt() 254 minor, opt->optname); in dogetopt()
|
/linux-2.4.37.9/include/net/ |
D | inet_common.h | 32 int optname, char *optval, 35 int optname, char *optval,
|
D | ip.h | 272 extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); 273 extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
|
D | ipv6.h | 339 int optname, char *optval, 342 int optname, char *optval,
|
/linux-2.4.37.9/net/bluetooth/ |
D | hci_sock.c | 436 int hci_sock_setsockopt(struct socket *sock, int level, int optname, char *optval, int len) in hci_sock_setsockopt() argument 442 BT_DBG("sk %p, opt %d", sk, optname); in hci_sock_setsockopt() 446 switch (optname) { in hci_sock_setsockopt() 498 int hci_sock_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen) in hci_sock_getsockopt() argument 506 switch (optname) { in hci_sock_getsockopt()
|
/linux-2.4.37.9/net/core/ |
D | sock.c | 172 int sock_setsockopt(struct socket *sock, int level, int optname, in sock_setsockopt() argument 189 switch(optname) in sock_setsockopt() 207 switch(optname) in sock_setsockopt() 427 int sock_getsockopt(struct socket *sock, int level, int optname, in sock_getsockopt() argument 448 switch(optname) in sock_getsockopt() 1038 int sock_no_setsockopt(struct socket *sock, int level, int optname, in sock_no_setsockopt() argument 1044 int sock_no_getsockopt(struct socket *sock, int level, int optname, in sock_no_getsockopt() argument
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | sys_sunos.c | 1119 extern asmlinkage int sys_setsockopt(int fd, int level, int optname, 1198 extern asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen); 1199 extern asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen); 1201 asmlinkage int sunos_setsockopt(int fd, int level, int optname, char *optval, in sunos_setsockopt() argument 1204 int tr_opt = optname; in sunos_setsockopt() 1216 asmlinkage int sunos_getsockopt(int fd, int level, int optname, char *optval, in sunos_getsockopt() argument 1219 int tr_opt = optname; in sunos_getsockopt()
|
/linux-2.4.37.9/net/decnet/ |
D | af_decnet.c | 152 static int __dn_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen, i… 153 static int __dn_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen, … 1317 static int dn_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) in dn_setsockopt() argument 1323 err = __dn_setsockopt(sock, level, optname, optval, optlen, 0); in dn_setsockopt() 1329 static int __dn_setsockopt(struct socket *sock, int level,int optname, char *optval, int optlen, in… in __dn_setsockopt() argument 1353 switch(optname) { in __dn_setsockopt() 1436 return nf_setsockopt(sk, PF_DECnet, optname, optval, optlen); in __dn_setsockopt() 1495 static int dn_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen) in dn_getsockopt() argument 1501 err = __dn_getsockopt(sock, level, optname, optval, optlen, 0); in dn_getsockopt() 1507 static int __dn_getsockopt(struct socket *sock, int level,int optname, char *optval,int *optlen, in… in __dn_getsockopt() argument [all …]
|
/linux-2.4.37.9/arch/parisc/kernel/ |
D | sys_parisc32.c | 2310 extern asmlinkage int sys_setsockopt(int fd, int level, int optname, 2313 static int do_set_attach_filter(int fd, int level, int optname, in do_set_attach_filter() argument 2347 ret = sys_setsockopt(fd, level, optname, in do_set_attach_filter() 2356 static int do_set_icmpv6_filter(int fd, int level, int optname, in do_set_icmpv6_filter() argument 2376 ret = sys_setsockopt(fd, level, optname, in do_set_icmpv6_filter() 2384 static int do_ipv4_set_replace(int fd, int level, int optname, in do_ipv4_set_replace() argument 2402 ret = sys_setsockopt(fd, level, optname, (char *) optval, optlen); in do_ipv4_set_replace() 2454 ret = sys_setsockopt(fd, level, optname, (char *) optval, optlen); 2485 asmlinkage int sys32_setsockopt(int fd, int level, int optname, in sys32_setsockopt() argument 2488 if (optname == SO_ATTACH_FILTER) in sys32_setsockopt() [all …]
|
/linux-2.4.37.9/fs/reiserfs/ |
D | bitmap.c | 41 #define SET_OPTION(optname) \ argument 43 reiserfs_warning(s, "reiserfs: option \"%s\" is set\n", #optname); \ 44 set_bit(_ALLOC_ ## optname , &SB_ALLOC_OPTS(s)); \ 46 #define TEST_OPTION(optname, s) \ argument 47 test_bit(_ALLOC_ ## optname , &SB_ALLOC_OPTS(s))
|
/linux-2.4.37.9/net/bluetooth/rfcomm/ |
D | sock.c | 639 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, char *optval, int op… in rfcomm_sock_setsockopt() argument 648 switch (optname) { in rfcomm_sock_setsockopt() 658 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char *optval, int *o… in rfcomm_sock_getsockopt() argument 670 switch (optname) { in rfcomm_sock_getsockopt()
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | sys_sunos32.c | 1267 extern asmlinkage int sys_setsockopt(int fd, int level, int optname, 1338 extern asmlinkage int sys_setsockopt(int fd, int level, int optname, 1340 extern asmlinkage int sys32_getsockopt(int fd, int level, int optname, 1343 asmlinkage int sunos_setsockopt(int fd, int level, int optname, u32 optval, in sunos_setsockopt() argument 1346 int tr_opt = optname; in sunos_setsockopt() 1358 asmlinkage int sunos_getsockopt(int fd, int level, int optname, in sunos_getsockopt() argument 1361 int tr_opt = optname; in sunos_getsockopt()
|