tag | line | file | source code |
intrfc | 139 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 146 | net/ipx/af_ipx.c | intrfc = sk->ipx_intrfc; |
intrfc | 147 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 152 | net/ipx/af_ipx.c | s=intrfc->if_sklist; |
intrfc | 154 | net/ipx/af_ipx.c | intrfc->if_sklist=s->next; |
intrfc | 233 | net/ipx/af_ipx.c | ipxitf_insert_socket(ipx_interface *intrfc, ipx_socket *sk) |
intrfc | 237 | net/ipx/af_ipx.c | sk->ipx_intrfc = intrfc; |
intrfc | 239 | net/ipx/af_ipx.c | if (intrfc->if_sklist == NULL) { |
intrfc | 240 | net/ipx/af_ipx.c | intrfc->if_sklist = sk; |
intrfc | 242 | net/ipx/af_ipx.c | for (s = intrfc->if_sklist; s->next != NULL; s = s->next) |
intrfc | 249 | net/ipx/af_ipx.c | ipxitf_find_socket(ipx_interface *intrfc, unsigned short port) |
intrfc | 253 | net/ipx/af_ipx.c | for (s=intrfc->if_sklist; |
intrfc | 264 | net/ipx/af_ipx.c | ipxitf_down(ipx_interface *intrfc) |
intrfc | 270 | net/ipx/af_ipx.c | ipxrtr_del_routes(intrfc); |
intrfc | 273 | net/ipx/af_ipx.c | for (s = intrfc->if_sklist; s != NULL; ) { |
intrfc | 283 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 286 | net/ipx/af_ipx.c | if (intrfc == ipx_interfaces) { |
intrfc | 287 | net/ipx/af_ipx.c | ipx_interfaces = intrfc->if_next; |
intrfc | 290 | net/ipx/af_ipx.c | (i != NULL) && (i->if_next != intrfc); |
intrfc | 293 | net/ipx/af_ipx.c | if ((i != NULL) && (i->if_next == intrfc)) |
intrfc | 294 | net/ipx/af_ipx.c | i->if_next = intrfc->if_next; |
intrfc | 298 | net/ipx/af_ipx.c | if (intrfc == ipx_primary_net) |
intrfc | 300 | net/ipx/af_ipx.c | if (intrfc == ipx_internal_net) |
intrfc | 303 | net/ipx/af_ipx.c | kfree_s(intrfc, sizeof(*intrfc)); |
intrfc | 352 | net/ipx/af_ipx.c | static int ipxitf_demux_socket(ipx_interface *intrfc, struct sk_buff *skb, int copy) |
intrfc | 358 | net/ipx/af_ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
intrfc | 368 | net/ipx/af_ipx.c | if (ipx_primary_net && (intrfc != ipx_primary_net)) |
intrfc | 449 | net/ipx/af_ipx.c | ipxitf_adjust_skbuff(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 453 | net/ipx/af_ipx.c | int out_offset = intrfc->if_ipx_offset; |
intrfc | 476 | net/ipx/af_ipx.c | static int ipxitf_send(ipx_interface *intrfc, struct sk_buff *skb, char *node) |
intrfc | 479 | net/ipx/af_ipx.c | struct device *dev = intrfc->if_dev; |
intrfc | 480 | net/ipx/af_ipx.c | struct datalink_proto *dl = intrfc->if_dlink; |
intrfc | 500 | net/ipx/af_ipx.c | if (ipx->ipx_dest.net == intrfc->if_netnum) |
intrfc | 505 | net/ipx/af_ipx.c | if (memcmp(intrfc->if_node, node, IPX_NODE_LEN) == 0) |
intrfc | 515 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 524 | net/ipx/af_ipx.c | ipxitf_demux_socket(intrfc, skb, send_to_wire); |
intrfc | 536 | net/ipx/af_ipx.c | if (ipx->ipx_source.net != intrfc->if_netnum) |
intrfc | 570 | net/ipx/af_ipx.c | skb = ipxitf_adjust_skbuff(intrfc, skb); |
intrfc | 596 | net/ipx/af_ipx.c | static int ipxitf_add_local_route(ipx_interface *intrfc) |
intrfc | 598 | net/ipx/af_ipx.c | return ipxrtr_add_route(intrfc->if_netnum, intrfc, NULL); |
intrfc | 605 | net/ipx/af_ipx.c | static int ipxitf_rcv(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 624 | net/ipx/af_ipx.c | if ((intrfc->if_netnum == 0L) && |
intrfc | 634 | net/ipx/af_ipx.c | intrfc->if_netnum = ipx->ipx_source.net; |
intrfc | 635 | net/ipx/af_ipx.c | (void) ipxitf_add_local_route(intrfc); |
intrfc | 643 | net/ipx/af_ipx.c | ipx_device_name(intrfc), |
intrfc | 644 | net/ipx/af_ipx.c | ipx_frame_name(intrfc->if_dlink_type)); |
intrfc | 649 | net/ipx/af_ipx.c | ipx->ipx_dest.net = intrfc->if_netnum; |
intrfc | 651 | net/ipx/af_ipx.c | ipx->ipx_source.net = intrfc->if_netnum; |
intrfc | 653 | net/ipx/af_ipx.c | if (intrfc->if_netnum != ipx->ipx_dest.net) |
intrfc | 676 | net/ipx/af_ipx.c | || (memcmp(intrfc->if_node, ipx->ipx_dest.node, IPX_NODE_LEN) == 0)) |
intrfc | 678 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 687 | net/ipx/af_ipx.c | ipxitf_insert(ipx_interface *intrfc) |
intrfc | 691 | net/ipx/af_ipx.c | intrfc->if_next = NULL; |
intrfc | 693 | net/ipx/af_ipx.c | ipx_interfaces = intrfc; |
intrfc | 697 | net/ipx/af_ipx.c | i->if_next = intrfc; |
intrfc | 701 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 707 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 717 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 718 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 720 | net/ipx/af_ipx.c | intrfc->if_dev=NULL; |
intrfc | 721 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 722 | net/ipx/af_ipx.c | intrfc->if_dlink_type = 0; |
intrfc | 723 | net/ipx/af_ipx.c | intrfc->if_dlink = NULL; |
intrfc | 724 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 725 | net/ipx/af_ipx.c | intrfc->if_internal = 1; |
intrfc | 726 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = 0; |
intrfc | 727 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 728 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node), idef->ipx_node, IPX_NODE_LEN); |
intrfc | 729 | net/ipx/af_ipx.c | ipx_internal_net = intrfc; |
intrfc | 730 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 731 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 732 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 753 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 801 | net/ipx/af_ipx.c | if ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) { |
intrfc | 804 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 805 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 807 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 808 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 809 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 810 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 811 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 812 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 815 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 816 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 817 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length; |
intrfc | 818 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 819 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len); |
intrfc | 821 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 825 | net/ipx/af_ipx.c | if (intrfc->if_netnum == 0L) |
intrfc | 828 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 836 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 853 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, dlink_type); |
intrfc | 854 | net/ipx/af_ipx.c | if (intrfc != NULL) { |
intrfc | 855 | net/ipx/af_ipx.c | ipxitf_down(intrfc); |
intrfc | 865 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 881 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 882 | net/ipx/af_ipx.c | if (intrfc!=NULL) { |
intrfc | 883 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 884 | net/ipx/af_ipx.c | intrfc->if_netnum=0L; |
intrfc | 885 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 886 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 887 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 888 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 889 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 890 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + |
intrfc | 892 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 893 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), |
intrfc | 895 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 898 | net/ipx/af_ipx.c | return intrfc; |
intrfc | 984 | net/ipx/af_ipx.c | ipxrtr_add_route(unsigned long network, ipx_interface *intrfc, unsigned char *node) |
intrfc | 999 | net/ipx/af_ipx.c | rt->ir_intrfc = intrfc; |
intrfc | 1011 | net/ipx/af_ipx.c | ipxrtr_del_routes(ipx_interface *intrfc) |
intrfc | 1016 | net/ipx/af_ipx.c | if (tmp->ir_intrfc == intrfc) { |
intrfc | 1028 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1031 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(rd->ipx_router_network); |
intrfc | 1032 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 1035 | net/ipx/af_ipx.c | return ipxrtr_add_route(rd->ipx_network, intrfc, rd->ipx_router_node); |
intrfc | 1068 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1079 | net/ipx/af_ipx.c | intrfc = ipx_primary_net; |
intrfc | 1087 | net/ipx/af_ipx.c | intrfc = rt->ir_intrfc; |
intrfc | 1090 | net/ipx/af_ipx.c | ipx_offset = intrfc->if_ipx_offset; |
intrfc | 1127 | net/ipx/af_ipx.c | return ipxitf_send(intrfc, skb, (rt && rt->ir_routed) ? |
intrfc | 1206 | net/ipx/af_ipx.c | ipx_device_name(ipx_interface *intrfc) |
intrfc | 1208 | net/ipx/af_ipx.c | return (intrfc->if_internal ? "Internal" : |
intrfc | 1209 | net/ipx/af_ipx.c | (intrfc->if_dev ? intrfc->if_dev->name : "Unknown")); |
intrfc | 1535 | net/ipx/af_ipx.c | ipx_first_free_socketnum(ipx_interface *intrfc) |
intrfc | 1537 | net/ipx/af_ipx.c | unsigned short socketNum = intrfc->if_sknum; |
intrfc | 1542 | net/ipx/af_ipx.c | while (ipxitf_find_socket(intrfc, ntohs(socketNum)) != NULL) |
intrfc | 1548 | net/ipx/af_ipx.c | intrfc->if_sknum = socketNum; |
intrfc | 1555 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1566 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(addr->sipx_network); |
intrfc | 1567 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 1571 | net/ipx/af_ipx.c | addr->sipx_port = ipx_first_free_socketnum(intrfc); |
intrfc | 1582 | net/ipx/af_ipx.c | if(ipxitf_find_socket(intrfc, addr->sipx_port)!=NULL) { |
intrfc | 1590 | net/ipx/af_ipx.c | ipxitf_insert_socket(intrfc, sk); |
intrfc | 1741 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1762 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, pt->type); |
intrfc | 1763 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1765 | net/ipx/af_ipx.c | intrfc = ipxitf_auto_create(dev, pt->type); |
intrfc | 1768 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1775 | net/ipx/af_ipx.c | return ipxitf_rcv(intrfc, skb); |