tag | line | file | source code |
intrfc | 99 | include/net/sock.h | ipx_interface *intrfc; |
intrfc | 141 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 148 | net/ipx/af_ipx.c | intrfc = sk->protinfo.af_ipx.intrfc; |
intrfc | 149 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 154 | net/ipx/af_ipx.c | s=intrfc->if_sklist; |
intrfc | 156 | net/ipx/af_ipx.c | intrfc->if_sklist=s->next; |
intrfc | 235 | net/ipx/af_ipx.c | ipxitf_insert_socket(ipx_interface *intrfc, ipx_socket *sk) |
intrfc | 239 | net/ipx/af_ipx.c | sk->protinfo.af_ipx.intrfc = intrfc; |
intrfc | 241 | net/ipx/af_ipx.c | if (intrfc->if_sklist == NULL) { |
intrfc | 242 | net/ipx/af_ipx.c | intrfc->if_sklist = sk; |
intrfc | 244 | net/ipx/af_ipx.c | for (s = intrfc->if_sklist; s->next != NULL; s = s->next) |
intrfc | 251 | net/ipx/af_ipx.c | ipxitf_find_socket(ipx_interface *intrfc, unsigned short port) |
intrfc | 255 | net/ipx/af_ipx.c | for (s=intrfc->if_sklist; |
intrfc | 266 | net/ipx/af_ipx.c | ipxitf_find_internal_socket(ipx_interface *intrfc, |
intrfc | 269 | net/ipx/af_ipx.c | ipx_socket *s = intrfc->if_sklist; |
intrfc | 287 | net/ipx/af_ipx.c | ipxitf_down(ipx_interface *intrfc) |
intrfc | 293 | net/ipx/af_ipx.c | ipxrtr_del_routes(intrfc); |
intrfc | 296 | net/ipx/af_ipx.c | for (s = intrfc->if_sklist; s != NULL; ) { |
intrfc | 299 | net/ipx/af_ipx.c | s->protinfo.af_ipx.intrfc = NULL; |
intrfc | 306 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 309 | net/ipx/af_ipx.c | if (intrfc == ipx_interfaces) { |
intrfc | 310 | net/ipx/af_ipx.c | ipx_interfaces = intrfc->if_next; |
intrfc | 313 | net/ipx/af_ipx.c | (i != NULL) && (i->if_next != intrfc); |
intrfc | 316 | net/ipx/af_ipx.c | if ((i != NULL) && (i->if_next == intrfc)) |
intrfc | 317 | net/ipx/af_ipx.c | i->if_next = intrfc->if_next; |
intrfc | 321 | net/ipx/af_ipx.c | if (intrfc == ipx_primary_net) |
intrfc | 323 | net/ipx/af_ipx.c | if (intrfc == ipx_internal_net) |
intrfc | 326 | net/ipx/af_ipx.c | kfree_s(intrfc, sizeof(*intrfc)); |
intrfc | 371 | net/ipx/af_ipx.c | ipxitf_demux_socket(ipx_interface *intrfc, struct sk_buff *skb, int copy) |
intrfc | 379 | net/ipx/af_ipx.c | s = intrfc->if_sklist; |
intrfc | 410 | net/ipx/af_ipx.c | if (intrfc != ipx_internal_net) |
intrfc | 435 | net/ipx/af_ipx.c | ipxitf_demux_socket(ipx_interface *intrfc, struct sk_buff *skb, int copy) |
intrfc | 441 | net/ipx/af_ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
intrfc | 451 | net/ipx/af_ipx.c | if (ipx_primary_net && (intrfc != ipx_primary_net)) |
intrfc | 533 | net/ipx/af_ipx.c | ipxitf_adjust_skbuff(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 537 | net/ipx/af_ipx.c | int out_offset = intrfc->if_ipx_offset; |
intrfc | 560 | net/ipx/af_ipx.c | static int ipxitf_send(ipx_interface *intrfc, struct sk_buff *skb, char *node) |
intrfc | 563 | net/ipx/af_ipx.c | struct device *dev = intrfc->if_dev; |
intrfc | 564 | net/ipx/af_ipx.c | struct datalink_proto *dl = intrfc->if_dlink; |
intrfc | 584 | net/ipx/af_ipx.c | if (ipx->ipx_dest.net == intrfc->if_netnum) |
intrfc | 589 | net/ipx/af_ipx.c | if (memcmp(intrfc->if_node, node, IPX_NODE_LEN) == 0) |
intrfc | 602 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 614 | net/ipx/af_ipx.c | ipxitf_demux_socket(intrfc, skb, send_to_wire); |
intrfc | 626 | net/ipx/af_ipx.c | if (ipx->ipx_source.net != intrfc->if_netnum) |
intrfc | 660 | net/ipx/af_ipx.c | skb = ipxitf_adjust_skbuff(intrfc, skb); |
intrfc | 687 | net/ipx/af_ipx.c | static int ipxitf_add_local_route(ipx_interface *intrfc) |
intrfc | 689 | net/ipx/af_ipx.c | return ipxrtr_add_route(intrfc->if_netnum, intrfc, NULL); |
intrfc | 696 | net/ipx/af_ipx.c | static int ipxitf_rcv(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 715 | net/ipx/af_ipx.c | if ((intrfc->if_netnum == 0L) && |
intrfc | 725 | net/ipx/af_ipx.c | intrfc->if_netnum = ipx->ipx_source.net; |
intrfc | 726 | net/ipx/af_ipx.c | (void) ipxitf_add_local_route(intrfc); |
intrfc | 734 | net/ipx/af_ipx.c | ipx_device_name(intrfc), |
intrfc | 735 | net/ipx/af_ipx.c | ipx_frame_name(intrfc->if_dlink_type)); |
intrfc | 740 | net/ipx/af_ipx.c | ipx->ipx_dest.net = intrfc->if_netnum; |
intrfc | 742 | net/ipx/af_ipx.c | ipx->ipx_source.net = intrfc->if_netnum; |
intrfc | 744 | net/ipx/af_ipx.c | if (intrfc->if_netnum != ipx->ipx_dest.net) |
intrfc | 767 | net/ipx/af_ipx.c | || (memcmp(intrfc->if_node, ipx->ipx_dest.node, IPX_NODE_LEN) == 0)) |
intrfc | 769 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 778 | net/ipx/af_ipx.c | ipxitf_insert(ipx_interface *intrfc) |
intrfc | 782 | net/ipx/af_ipx.c | intrfc->if_next = NULL; |
intrfc | 784 | net/ipx/af_ipx.c | ipx_interfaces = intrfc; |
intrfc | 788 | net/ipx/af_ipx.c | i->if_next = intrfc; |
intrfc | 792 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 798 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 808 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 809 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 811 | net/ipx/af_ipx.c | intrfc->if_dev=NULL; |
intrfc | 812 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 813 | net/ipx/af_ipx.c | intrfc->if_dlink_type = 0; |
intrfc | 814 | net/ipx/af_ipx.c | intrfc->if_dlink = NULL; |
intrfc | 815 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 816 | net/ipx/af_ipx.c | intrfc->if_internal = 1; |
intrfc | 817 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = 0; |
intrfc | 818 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 819 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node), idef->ipx_node, IPX_NODE_LEN); |
intrfc | 820 | net/ipx/af_ipx.c | ipx_internal_net = intrfc; |
intrfc | 821 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 822 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 823 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 844 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 892 | net/ipx/af_ipx.c | if ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) { |
intrfc | 895 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 896 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 898 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 899 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 900 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 901 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 902 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 903 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 906 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 907 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 908 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length; |
intrfc | 909 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 910 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len); |
intrfc | 912 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 916 | net/ipx/af_ipx.c | if (intrfc->if_netnum == 0L) |
intrfc | 919 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 927 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 944 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, dlink_type); |
intrfc | 945 | net/ipx/af_ipx.c | if (intrfc != NULL) { |
intrfc | 946 | net/ipx/af_ipx.c | ipxitf_down(intrfc); |
intrfc | 956 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 972 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 973 | net/ipx/af_ipx.c | if (intrfc!=NULL) { |
intrfc | 974 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 975 | net/ipx/af_ipx.c | intrfc->if_netnum=0L; |
intrfc | 976 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 977 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 978 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 979 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 980 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 981 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + |
intrfc | 983 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 984 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), |
intrfc | 986 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 989 | net/ipx/af_ipx.c | return intrfc; |
intrfc | 1076 | net/ipx/af_ipx.c | ipxrtr_add_route(unsigned long network, ipx_interface *intrfc, unsigned char *node) |
intrfc | 1089 | net/ipx/af_ipx.c | else if (intrfc == ipx_internal_net) |
intrfc | 1093 | net/ipx/af_ipx.c | rt->ir_intrfc = intrfc; |
intrfc | 1105 | net/ipx/af_ipx.c | ipxrtr_del_routes(ipx_interface *intrfc) |
intrfc | 1110 | net/ipx/af_ipx.c | if (tmp->ir_intrfc == intrfc) { |
intrfc | 1122 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1125 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(rd->ipx_router_network); |
intrfc | 1126 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 1129 | net/ipx/af_ipx.c | return ipxrtr_add_route(rd->ipx_network, intrfc, rd->ipx_router_node); |
intrfc | 1162 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1173 | net/ipx/af_ipx.c | intrfc = ipx_primary_net; |
intrfc | 1181 | net/ipx/af_ipx.c | intrfc = rt->ir_intrfc; |
intrfc | 1184 | net/ipx/af_ipx.c | ipx_offset = intrfc->if_ipx_offset; |
intrfc | 1205 | net/ipx/af_ipx.c | ipx->ipx_source.net = sk->protinfo.af_ipx.intrfc->if_netnum; |
intrfc | 1212 | net/ipx/af_ipx.c | ipx->ipx_source.net = intrfc->if_netnum; |
intrfc | 1213 | net/ipx/af_ipx.c | memcpy(ipx->ipx_source.node, intrfc->if_node, IPX_NODE_LEN); |
intrfc | 1217 | net/ipx/af_ipx.c | ipx->ipx_source.net = sk->protinfo.af_ipx.intrfc->if_netnum; |
intrfc | 1218 | net/ipx/af_ipx.c | memcpy(ipx->ipx_source.node, sk->protinfo.af_ipx.intrfc->if_node, IPX_NODE_LEN); |
intrfc | 1236 | net/ipx/af_ipx.c | return ipxitf_send(intrfc, skb, (rt && rt->ir_routed) ? |
intrfc | 1315 | net/ipx/af_ipx.c | ipx_device_name(ipx_interface *intrfc) |
intrfc | 1317 | net/ipx/af_ipx.c | return (intrfc->if_internal ? "Internal" : |
intrfc | 1318 | net/ipx/af_ipx.c | (intrfc->if_dev ? intrfc->if_dev->name : "Unknown")); |
intrfc | 1388 | net/ipx/af_ipx.c | htonl(s->protinfo.af_ipx.intrfc->if_netnum), |
intrfc | 1626 | net/ipx/af_ipx.c | sk->protinfo.af_ipx.intrfc = NULL; |
intrfc | 1667 | net/ipx/af_ipx.c | ipx_first_free_socketnum(ipx_interface *intrfc) |
intrfc | 1669 | net/ipx/af_ipx.c | unsigned short socketNum = intrfc->if_sknum; |
intrfc | 1674 | net/ipx/af_ipx.c | while (ipxitf_find_socket(intrfc, ntohs(socketNum)) != NULL) |
intrfc | 1680 | net/ipx/af_ipx.c | intrfc->if_sknum = socketNum; |
intrfc | 1687 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1698 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(addr->sipx_network); |
intrfc | 1699 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 1703 | net/ipx/af_ipx.c | addr->sipx_port = ipx_first_free_socketnum(intrfc); |
intrfc | 1714 | net/ipx/af_ipx.c | if (intrfc == ipx_internal_net) |
intrfc | 1728 | net/ipx/af_ipx.c | memcpy(sk->protinfo.af_ipx.node, intrfc->if_node, |
intrfc | 1735 | net/ipx/af_ipx.c | if (ipxitf_find_internal_socket(intrfc, |
intrfc | 1752 | net/ipx/af_ipx.c | memcpy(sk->protinfo.af_ipx.node, intrfc->if_node, |
intrfc | 1755 | net/ipx/af_ipx.c | if(ipxitf_find_socket(intrfc, addr->sipx_port)!=NULL) { |
intrfc | 1768 | net/ipx/af_ipx.c | if(ipxitf_find_socket(intrfc, addr->sipx_port)!=NULL) { |
intrfc | 1777 | net/ipx/af_ipx.c | ipxitf_insert_socket(intrfc, sk); |
intrfc | 1806 | net/ipx/af_ipx.c | memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc->if_node, |
intrfc | 1857 | net/ipx/af_ipx.c | if (sk->protinfo.af_ipx.intrfc != NULL) { |
intrfc | 1858 | net/ipx/af_ipx.c | sipx.sipx_network = sk->protinfo.af_ipx.intrfc->if_netnum; |
intrfc | 1863 | net/ipx/af_ipx.c | sk->protinfo.af_ipx.intrfc->if_node, IPX_NODE_LEN); |
intrfc | 1939 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1960 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, pt->type); |
intrfc | 1961 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1963 | net/ipx/af_ipx.c | intrfc = ipxitf_auto_create(dev, pt->type); |
intrfc | 1966 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1973 | net/ipx/af_ipx.c | return ipxitf_rcv(intrfc, skb); |
intrfc | 1997 | net/ipx/af_ipx.c | memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc |