Lines Matching refs:ipx
484 struct ipxhdr *ipx = skb->nh.ipxh; in ipxitf_demux_socket() local
485 int is_broadcast = !memcmp(ipx->ipx_dest.node, ipx_broadcast_node, in ipxitf_demux_socket()
494 if (s->protinfo.af_ipx.port == ipx->ipx_dest.sock && in ipxitf_demux_socket()
495 (is_broadcast || !memcmp(ipx->ipx_dest.node, in ipxitf_demux_socket()
529 struct ipxhdr *ipx) in ncp_connection_hack() argument
540 u8 *ncphdr = (u8 *)(ipx + 1); in ncp_connection_hack()
565 struct ipxhdr *ipx = skb->nh.ipxh; in ipxitf_demux_socket() local
570 if (intrfc == ipx_primary_net && ntohs(ipx->ipx_dest.sock) == 0x451) in ipxitf_demux_socket()
571 sock1 = ncp_connection_hack(intrfc, ipx); in ipxitf_demux_socket()
574 sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); in ipxitf_demux_socket()
585 const int dsock = ntohs(ipx->ipx_dest.sock); in ipxitf_demux_socket()
593 ipx->ipx_dest.sock); in ipxitf_demux_socket()
676 struct ipxhdr *ipx = skb->nh.ipxh; in ipxitf_send() local
683 ipx->ipx_tctrl = IPX_SKB_CB(skb)->ipx_tctrl; in ipxitf_send()
684 ipx->ipx_dest.net = IPX_SKB_CB(skb)->ipx_dest_net; in ipxitf_send()
685 ipx->ipx_source.net = IPX_SKB_CB(skb)->ipx_source_net; in ipxitf_send()
712 if (ipx->ipx_dest.net == intrfc->if_netnum) { in ipxitf_send()
741 if (ipx->ipx_source.net != intrfc->if_netnum) { in ipxitf_send()
749 if (++ipx->ipx_tctrl > ipxcfg_max_hops) in ipxitf_send()
794 struct ipxhdr *ipx = skb->nh.ipxh; in ipxitf_rcv() local
804 if (ipx->ipx_type == IPX_TYPE_PPROP) { in ipxitf_rcv()
818 if (ipx->ipx_type != IPX_TYPE_PPROP && in ipxitf_rcv()
832 if (!memcmp(ipx_broadcast_node, ipx->ipx_dest.node, IPX_NODE_LEN) || in ipxitf_rcv()
833 !memcmp(intrfc->if_node, ipx->ipx_dest.node, IPX_NODE_LEN)) { in ipxitf_rcv()
898 struct ipxhdr *ipx = skb->nh.ipxh; in ipxitf_pprop() local
909 ntohs(ipx->ipx_pktsize) < sizeof(struct ipxhdr) + in ipxitf_pprop()
922 c = ((u8 *) ipx) + sizeof(struct ipxhdr); in ipxitf_pprop()
1513 struct ipxhdr *ipx; in ipxrtr_route_packet() local
1543 ipx = (struct ipxhdr *)skb_put(skb, sizeof(struct ipxhdr)); in ipxrtr_route_packet()
1544 ipx->ipx_pktsize = htons(len + sizeof(struct ipxhdr)); in ipxrtr_route_packet()
1546 ipx->ipx_type = usipx->sipx_type; in ipxrtr_route_packet()
1547 skb->nh.ipxh = ipx; in ipxrtr_route_packet()
1553 memcpy(ipx->ipx_source.node, sk->protinfo.af_ipx.node, IPX_NODE_LEN); in ipxrtr_route_packet()
1559 memcpy(ipx->ipx_source.node, intrfc->if_node, IPX_NODE_LEN); in ipxrtr_route_packet()
1563 memcpy(ipx->ipx_source.node, sk->protinfo.af_ipx.intrfc->if_node, IPX_NODE_LEN); in ipxrtr_route_packet()
1566 ipx->ipx_source.sock = sk->protinfo.af_ipx.port; in ipxrtr_route_packet()
1568 memcpy(ipx->ipx_dest.node, usipx->sipx_node, IPX_NODE_LEN); in ipxrtr_route_packet()
1569 ipx->ipx_dest.sock = usipx->sipx_port; in ipxrtr_route_packet()
1579 ipx->ipx_checksum = 0xFFFF; in ipxrtr_route_packet()
1581 ipx->ipx_checksum = ipx_cksum(ipx, len + sizeof(struct ipxhdr)); in ipxrtr_route_packet()
1584 rt->ir_router_node : ipx->ipx_dest.node); in ipxrtr_route_packet()
1596 struct ipxhdr *ipx = skb->nh.ipxh; in ipxrtr_route_skb() local
1606 r->ir_router_node : ipx->ipx_dest.node); in ipxrtr_route_skb()
2203 struct ipxhdr *ipx; in ipx_rcv() local
2214 ipx = skb->nh.ipxh; in ipx_rcv()
2215 ipx_pktsize = ntohs(ipx->ipx_pktsize); in ipx_rcv()
2221 if (ipx->ipx_checksum != IPX_NO_CHECKSUM && in ipx_rcv()
2222 ipx->ipx_checksum != ipx_cksum(ipx, ipx_pktsize)) in ipx_rcv()
2225 IPX_SKB_CB(skb)->ipx_tctrl = ipx->ipx_tctrl; in ipx_rcv()
2226 IPX_SKB_CB(skb)->ipx_dest_net = ipx->ipx_dest.net; in ipx_rcv()
2227 IPX_SKB_CB(skb)->ipx_source_net = ipx->ipx_source.net; in ipx_rcv()
2317 struct ipxhdr *ipx = NULL; in ipx_recvmsg() local
2351 ipx = skb->nh.ipxh; in ipx_recvmsg()
2352 copied = ntohs(ipx->ipx_pktsize) - sizeof(struct ipxhdr); in ipx_recvmsg()
2368 sipx->sipx_port = ipx->ipx_source.sock; in ipx_recvmsg()
2369 memcpy(sipx->sipx_node, ipx->ipx_source.node, IPX_NODE_LEN); in ipx_recvmsg()
2371 sipx->sipx_type = ipx->ipx_type; in ipx_recvmsg()