tag | line | file | source code |
intrfc | 136 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 143 | net/ipx/af_ipx.c | intrfc = sk->ipx_intrfc; |
intrfc | 144 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 149 | net/ipx/af_ipx.c | s=intrfc->if_sklist; |
intrfc | 151 | net/ipx/af_ipx.c | intrfc->if_sklist=s->next; |
intrfc | 230 | net/ipx/af_ipx.c | ipxitf_insert_socket(ipx_interface *intrfc, ipx_socket *sk) |
intrfc | 234 | net/ipx/af_ipx.c | sk->ipx_intrfc = intrfc; |
intrfc | 236 | net/ipx/af_ipx.c | if (intrfc->if_sklist == NULL) { |
intrfc | 237 | net/ipx/af_ipx.c | intrfc->if_sklist = sk; |
intrfc | 239 | net/ipx/af_ipx.c | for (s = intrfc->if_sklist; s->next != NULL; s = s->next) |
intrfc | 246 | net/ipx/af_ipx.c | ipxitf_find_socket(ipx_interface *intrfc, unsigned short port) |
intrfc | 250 | net/ipx/af_ipx.c | for (s=intrfc->if_sklist; |
intrfc | 261 | net/ipx/af_ipx.c | ipxitf_down(ipx_interface *intrfc) |
intrfc | 267 | net/ipx/af_ipx.c | ipxrtr_del_routes(intrfc); |
intrfc | 270 | net/ipx/af_ipx.c | for (s = intrfc->if_sklist; s != NULL; ) { |
intrfc | 280 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 283 | net/ipx/af_ipx.c | if (intrfc == ipx_interfaces) { |
intrfc | 284 | net/ipx/af_ipx.c | ipx_interfaces = intrfc->if_next; |
intrfc | 287 | net/ipx/af_ipx.c | (i != NULL) && (i->if_next != intrfc); |
intrfc | 290 | net/ipx/af_ipx.c | if ((i != NULL) && (i->if_next == intrfc)) |
intrfc | 291 | net/ipx/af_ipx.c | i->if_next = intrfc->if_next; |
intrfc | 295 | net/ipx/af_ipx.c | if (intrfc == ipx_primary_net) |
intrfc | 297 | net/ipx/af_ipx.c | if (intrfc == ipx_internal_net) |
intrfc | 300 | net/ipx/af_ipx.c | kfree_s(intrfc, sizeof(*intrfc)); |
intrfc | 344 | net/ipx/af_ipx.c | ipxitf_demux_socket(ipx_interface *intrfc, struct sk_buff *skb, int copy) |
intrfc | 350 | net/ipx/af_ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
intrfc | 359 | net/ipx/af_ipx.c | if (ipx_primary_net && (intrfc != ipx_primary_net)) { |
intrfc | 426 | net/ipx/af_ipx.c | ipxitf_adjust_skbuff(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 430 | net/ipx/af_ipx.c | int out_offset = intrfc->if_ipx_offset; |
intrfc | 470 | net/ipx/af_ipx.c | ipxitf_send(ipx_interface *intrfc, struct sk_buff *skb, char *node) |
intrfc | 473 | net/ipx/af_ipx.c | struct device *dev = intrfc->if_dev; |
intrfc | 474 | net/ipx/af_ipx.c | struct datalink_proto *dl = intrfc->if_dlink; |
intrfc | 486 | net/ipx/af_ipx.c | if (ipx->ipx_dest.net == intrfc->if_netnum) { |
intrfc | 487 | net/ipx/af_ipx.c | if (memcmp(intrfc->if_node, node, IPX_NODE_LEN) == 0) |
intrfc | 488 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 490 | net/ipx/af_ipx.c | ipxitf_demux_socket(intrfc, skb, send_to_wire); |
intrfc | 496 | net/ipx/af_ipx.c | if (ipx->ipx_source.net != intrfc->if_netnum) { |
intrfc | 523 | net/ipx/af_ipx.c | skb = ipxitf_adjust_skbuff(intrfc, skb); |
intrfc | 552 | net/ipx/af_ipx.c | ipxitf_add_local_route(ipx_interface *intrfc) |
intrfc | 554 | net/ipx/af_ipx.c | return ipxrtr_add_route(intrfc->if_netnum, intrfc, NULL); |
intrfc | 562 | net/ipx/af_ipx.c | ipxitf_rcv(ipx_interface *intrfc, struct sk_buff *skb) |
intrfc | 568 | net/ipx/af_ipx.c | if ((intrfc->if_netnum == 0L) && |
intrfc | 576 | net/ipx/af_ipx.c | intrfc->if_netnum = ipx->ipx_source.net; |
intrfc | 577 | net/ipx/af_ipx.c | (void) ipxitf_add_local_route(intrfc); |
intrfc | 583 | net/ipx/af_ipx.c | ipx_device_name(intrfc), |
intrfc | 584 | net/ipx/af_ipx.c | ipx_frame_name(intrfc->if_dlink_type)); |
intrfc | 589 | net/ipx/af_ipx.c | ipx->ipx_dest.net = intrfc->if_netnum; |
intrfc | 591 | net/ipx/af_ipx.c | ipx->ipx_source.net = intrfc->if_netnum; |
intrfc | 593 | net/ipx/af_ipx.c | if (intrfc->if_netnum != ipx->ipx_dest.net) { |
intrfc | 605 | net/ipx/af_ipx.c | || (memcmp(intrfc->if_node, ipx->ipx_dest.node, IPX_NODE_LEN) == 0)) { |
intrfc | 606 | net/ipx/af_ipx.c | return ipxitf_demux_socket(intrfc, skb, 0); |
intrfc | 615 | net/ipx/af_ipx.c | ipxitf_insert(ipx_interface *intrfc) |
intrfc | 619 | net/ipx/af_ipx.c | intrfc->if_next = NULL; |
intrfc | 621 | net/ipx/af_ipx.c | ipx_interfaces = intrfc; |
intrfc | 625 | net/ipx/af_ipx.c | i->if_next = intrfc; |
intrfc | 629 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 635 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 645 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 646 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 648 | net/ipx/af_ipx.c | intrfc->if_dev=NULL; |
intrfc | 649 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 650 | net/ipx/af_ipx.c | intrfc->if_dlink_type = 0; |
intrfc | 651 | net/ipx/af_ipx.c | intrfc->if_dlink = NULL; |
intrfc | 652 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 653 | net/ipx/af_ipx.c | intrfc->if_internal = 1; |
intrfc | 654 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = 0; |
intrfc | 655 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 656 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node), idef->ipx_node, IPX_NODE_LEN); |
intrfc | 657 | net/ipx/af_ipx.c | ipx_internal_net = intrfc; |
intrfc | 658 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 659 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 660 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 681 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 729 | net/ipx/af_ipx.c | if ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) { |
intrfc | 732 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 733 | net/ipx/af_ipx.c | if (intrfc==NULL) |
intrfc | 735 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 736 | net/ipx/af_ipx.c | intrfc->if_netnum=idef->ipx_network; |
intrfc | 737 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 738 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 739 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 740 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 743 | net/ipx/af_ipx.c | ipx_primary_net = intrfc; |
intrfc | 744 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 745 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length; |
intrfc | 746 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 747 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len); |
intrfc | 749 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 753 | net/ipx/af_ipx.c | if (intrfc->if_netnum == 0L) |
intrfc | 756 | net/ipx/af_ipx.c | return ipxitf_add_local_route(intrfc); |
intrfc | 764 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 781 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, dlink_type); |
intrfc | 782 | net/ipx/af_ipx.c | if (intrfc != NULL) { |
intrfc | 783 | net/ipx/af_ipx.c | ipxitf_down(intrfc); |
intrfc | 793 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 809 | net/ipx/af_ipx.c | intrfc=(ipx_interface *)kmalloc(sizeof(ipx_interface),GFP_ATOMIC); |
intrfc | 810 | net/ipx/af_ipx.c | if (intrfc!=NULL) { |
intrfc | 811 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
intrfc | 812 | net/ipx/af_ipx.c | intrfc->if_netnum=0L; |
intrfc | 813 | net/ipx/af_ipx.c | intrfc->if_dlink_type = dlink_type; |
intrfc | 814 | net/ipx/af_ipx.c | intrfc->if_dlink = datalink; |
intrfc | 815 | net/ipx/af_ipx.c | intrfc->if_sklist = NULL; |
intrfc | 816 | net/ipx/af_ipx.c | intrfc->if_internal = 0; |
intrfc | 817 | net/ipx/af_ipx.c | intrfc->if_sknum = IPX_MIN_EPHEMERAL_SOCKET; |
intrfc | 818 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + |
intrfc | 820 | net/ipx/af_ipx.c | memset(intrfc->if_node, 0, IPX_NODE_LEN); |
intrfc | 821 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), |
intrfc | 823 | net/ipx/af_ipx.c | ipxitf_insert(intrfc); |
intrfc | 826 | net/ipx/af_ipx.c | return intrfc; |
intrfc | 912 | net/ipx/af_ipx.c | ipxrtr_add_route(unsigned long network, ipx_interface *intrfc, unsigned char *node) |
intrfc | 927 | net/ipx/af_ipx.c | rt->ir_intrfc = intrfc; |
intrfc | 939 | net/ipx/af_ipx.c | ipxrtr_del_routes(ipx_interface *intrfc) |
intrfc | 944 | net/ipx/af_ipx.c | if (tmp->ir_intrfc == intrfc) { |
intrfc | 956 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 959 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(rd->ipx_router_network); |
intrfc | 960 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 963 | net/ipx/af_ipx.c | return ipxrtr_add_route(rd->ipx_network, intrfc, rd->ipx_router_node); |
intrfc | 993 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1002 | net/ipx/af_ipx.c | intrfc = ipx_primary_net; |
intrfc | 1008 | net/ipx/af_ipx.c | intrfc = rt->ir_intrfc; |
intrfc | 1011 | net/ipx/af_ipx.c | ipx_offset = intrfc->if_ipx_offset; |
intrfc | 1041 | net/ipx/af_ipx.c | return ipxitf_send(intrfc, skb, (rt && rt->ir_routed) ? |
intrfc | 1120 | net/ipx/af_ipx.c | ipx_device_name(ipx_interface *intrfc) |
intrfc | 1122 | net/ipx/af_ipx.c | return (intrfc->if_internal ? "Internal" : |
intrfc | 1123 | net/ipx/af_ipx.c | (intrfc->if_dev ? intrfc->if_dev->name : "Unknown")); |
intrfc | 1449 | net/ipx/af_ipx.c | ipx_first_free_socketnum(ipx_interface *intrfc) |
intrfc | 1451 | net/ipx/af_ipx.c | unsigned short socketNum = intrfc->if_sknum; |
intrfc | 1456 | net/ipx/af_ipx.c | while (ipxitf_find_socket(intrfc, ntohs(socketNum)) != NULL) |
intrfc | 1462 | net/ipx/af_ipx.c | intrfc->if_sknum = socketNum; |
intrfc | 1469 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1480 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_net(addr->sipx_network); |
intrfc | 1481 | net/ipx/af_ipx.c | if (intrfc == NULL) |
intrfc | 1485 | net/ipx/af_ipx.c | addr->sipx_port = ipx_first_free_socketnum(intrfc); |
intrfc | 1496 | net/ipx/af_ipx.c | if(ipxitf_find_socket(intrfc, addr->sipx_port)!=NULL) { |
intrfc | 1504 | net/ipx/af_ipx.c | ipxitf_insert_socket(intrfc, sk); |
intrfc | 1655 | net/ipx/af_ipx.c | ipx_interface *intrfc; |
intrfc | 1676 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, pt->type); |
intrfc | 1677 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1679 | net/ipx/af_ipx.c | intrfc = ipxitf_auto_create(dev, pt->type); |
intrfc | 1682 | net/ipx/af_ipx.c | if (intrfc == NULL) { |
intrfc | 1689 | net/ipx/af_ipx.c | return ipxitf_rcv(intrfc, skb); |