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 | 347 | net/ipx/af_ipx.c | ipxitf_demux_socket(ipx_interface *intrfc, struct sk_buff *skb, int copy) |
intrfc | 353 | net/ipx/af_ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
intrfc | 362 | net/ipx/af_ipx.c | if (ipx_primary_net && (intrfc != ipx_primary_net)) { |
intrfc | 429 | net/ipx/af_ipx.c | ipxitf_adjust_skbuff(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 433 | net/ipx/af_ipx.c | int out_offset = intrfc->if_ipx_offset; |
intrfc | 473 | net/ipx/af_ipx.c | ipxitf_send(ipx_interface *intrfc, struct sk_buff *skb, char *node) |
intrfc | 476 | net/ipx/af_ipx.c | struct device *dev = intrfc->if_dev; |
intrfc | 477 | net/ipx/af_ipx.c | struct datalink_proto *dl = intrfc->if_dlink; |
intrfc | 489 | net/ipx/af_ipx.c | if (ipx->ipx_dest.net == intrfc->if_netnum) { |
intrfc | 490 | net/ipx/af_ipx.c | if (memcmp(intrfc->if_node, node, IPX_NODE_LEN) == 0) |
intrfc | 491 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 493 | net/ipx/af_ipx.c | ipxitf_demux_socket(intrfc, skb, send_to_wire); |
intrfc | 499 | net/ipx/af_ipx.c | if (ipx->ipx_source.net != intrfc->if_netnum) { |
intrfc | 526 | net/ipx/af_ipx.c | skb = ipxitf_adjust_skbuff(intrfc, skb); |
intrfc | 555 | net/ipx/af_ipx.c | ipxitf_add_local_route(ipx_interface *intrfc) |
intrfc | 557 | net/ipx/af_ipx.c | return ipxrtr_add_route(intrfc->if_netnum, intrfc, NULL); |
intrfc | 564 | net/ipx/af_ipx.c | static int ipxitf_rcv(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 583 | net/ipx/af_ipx.c | if ((intrfc->if_netnum == 0L) && |
intrfc | 593 | net/ipx/af_ipx.c | intrfc->if_netnum = ipx->ipx_source.net; |
intrfc | 594 | net/ipx/af_ipx.c | (void) ipxitf_add_local_route(intrfc); |
intrfc | 602 | net/ipx/af_ipx.c | ipx_device_name(intrfc), |
intrfc | 603 | net/ipx/af_ipx.c | ipx_frame_name(intrfc->if_dlink_type)); |
intrfc | 608 | net/ipx/af_ipx.c | ipx->ipx_dest.net = intrfc->if_netnum; |
intrfc | 610 | net/ipx/af_ipx.c | ipx->ipx_source.net = intrfc->if_netnum; |
intrfc | 612 | net/ipx/af_ipx.c | if (intrfc->if_netnum != ipx->ipx_dest.net) |
intrfc | 635 | net/ipx/af_ipx.c | || (memcmp(intrfc->if_node, ipx->ipx_dest.node, IPX_NODE_LEN) == 0)) |
intrfc | 637 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 646 | net/ipx/af_ipx.c | ipxitf_insert(ipx_interface *intrfc) |
intrfc | 650 | net/ipx/af_ipx.c | intrfc->if_next = NULL; |
intrfc | 652 | net/ipx/af_ipx.c | ipx_interfaces = intrfc; |
intrfc | 656 | net/ipx/af_ipx.c | i->if_next = intrfc; |
intrfc | 660 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 666 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 676 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 677 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 679 | net/ipx/af_ipx.c | intrfc->if_dev=NULL; |
intrfc | 680 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 681 | net/ipx/af_ipx.c | intrfc->if_dlink_type = 0; |
intrfc | 682 | net/ipx/af_ipx.c | intrfc->if_dlink = NULL; |
intrfc | 683 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 684 | net/ipx/af_ipx.c | intrfc->if_internal = 1; |
intrfc | 685 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = 0; |
intrfc | 686 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 687 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node), idef->ipx_node, IPX_NODE_LEN); |
intrfc | 688 | net/ipx/af_ipx.c | ipx_internal_net = intrfc; |
intrfc | 689 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 690 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 691 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 712 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 760 | net/ipx/af_ipx.c | if ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) { |
intrfc | 763 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 764 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 766 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 767 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 768 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 769 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 770 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 771 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 774 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 775 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 776 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length; |
intrfc | 777 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 778 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len); |
intrfc | 780 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 784 | net/ipx/af_ipx.c | if (intrfc->if_netnum == 0L) |
intrfc | 787 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 795 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 812 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, dlink_type); |
intrfc | 813 | net/ipx/af_ipx.c | if (intrfc != NULL) { |
intrfc | 814 | net/ipx/af_ipx.c | ipxitf_down(intrfc); |
intrfc | 824 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 840 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 841 | net/ipx/af_ipx.c | if (intrfc!=NULL) { |
intrfc | 842 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 843 | net/ipx/af_ipx.c | intrfc->if_netnum=0L; |
intrfc | 844 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 845 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 846 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 847 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 848 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 849 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + |
intrfc | 851 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 852 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), |
intrfc | 854 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 857 | net/ipx/af_ipx.c | return intrfc; |
intrfc | 943 | net/ipx/af_ipx.c | ipxrtr_add_route(unsigned long network, ipx_interface *intrfc, unsigned char *node) |
intrfc | 958 | net/ipx/af_ipx.c | rt->ir_intrfc = intrfc; |
intrfc | 970 | net/ipx/af_ipx.c | ipxrtr_del_routes(ipx_interface *intrfc) |
intrfc | 975 | net/ipx/af_ipx.c | if (tmp->ir_intrfc == intrfc) { |
intrfc | 987 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 990 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(rd->ipx_router_network); |
intrfc | 991 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 994 | net/ipx/af_ipx.c | return ipxrtr_add_route(rd->ipx_network, intrfc, rd->ipx_router_node); |
intrfc | 1027 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1038 | net/ipx/af_ipx.c | intrfc = ipx_primary_net; |
intrfc | 1046 | net/ipx/af_ipx.c | intrfc = rt->ir_intrfc; |
intrfc | 1049 | net/ipx/af_ipx.c | ipx_offset = intrfc->if_ipx_offset; |
intrfc | 1086 | net/ipx/af_ipx.c | return ipxitf_send(intrfc, skb, (rt && rt->ir_routed) ? |
intrfc | 1165 | net/ipx/af_ipx.c | ipx_device_name(ipx_interface *intrfc) |
intrfc | 1167 | net/ipx/af_ipx.c | return (intrfc->if_internal ? "Internal" : |
intrfc | 1168 | net/ipx/af_ipx.c | (intrfc->if_dev ? intrfc->if_dev->name : "Unknown")); |
intrfc | 1494 | net/ipx/af_ipx.c | ipx_first_free_socketnum(ipx_interface *intrfc) |
intrfc | 1496 | net/ipx/af_ipx.c | unsigned short socketNum = intrfc->if_sknum; |
intrfc | 1501 | net/ipx/af_ipx.c | while (ipxitf_find_socket(intrfc, ntohs(socketNum)) != NULL) |
intrfc | 1507 | net/ipx/af_ipx.c | intrfc->if_sknum = socketNum; |
intrfc | 1514 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1525 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(addr->sipx_network); |
intrfc | 1526 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 1530 | net/ipx/af_ipx.c | addr->sipx_port = ipx_first_free_socketnum(intrfc); |
intrfc | 1541 | net/ipx/af_ipx.c | if(ipxitf_find_socket(intrfc, addr->sipx_port)!=NULL) { |
intrfc | 1549 | net/ipx/af_ipx.c | ipxitf_insert_socket(intrfc, sk); |
intrfc | 1700 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1721 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, pt->type); |
intrfc | 1722 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1724 | net/ipx/af_ipx.c | intrfc = ipxitf_auto_create(dev, pt->type); |
intrfc | 1727 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1734 | net/ipx/af_ipx.c | return ipxitf_rcv(intrfc, skb); |