Lines Matching refs:ipx

384 	struct ipxhdr *ipx = ipx_hdr(skb);  in ipxitf_demux_socket()  local
385 int is_broadcast = !memcmp(ipx->ipx_dest.node, ipx_broadcast_node, in ipxitf_demux_socket()
396 if (ipxs->port == ipx->ipx_dest.sock && in ipxitf_demux_socket()
397 (is_broadcast || !memcmp(ipx->ipx_dest.node, in ipxitf_demux_socket()
430 struct ipxhdr *ipx) in ncp_connection_hack() argument
441 u8 *ncphdr = (u8 *)(ipx + 1); in ncp_connection_hack()
469 struct ipxhdr *ipx = ipx_hdr(skb); in ipxitf_demux_socket() local
474 if (intrfc == ipx_primary_net && ntohs(ipx->ipx_dest.sock) == 0x451) in ipxitf_demux_socket()
475 sock1 = ncp_connection_hack(intrfc, ipx); in ipxitf_demux_socket()
478 sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); in ipxitf_demux_socket()
489 const int dsock = ntohs(ipx->ipx_dest.sock); in ipxitf_demux_socket()
497 ipx->ipx_dest.sock); in ipxitf_demux_socket()
583 struct ipxhdr *ipx = ipx_hdr(skb); in ipxitf_send() local
590 ipx->ipx_tctrl = IPX_SKB_CB(skb)->ipx_tctrl; in ipxitf_send()
591 ipx->ipx_dest.net = IPX_SKB_CB(skb)->ipx_dest_net; in ipxitf_send()
592 ipx->ipx_source.net = IPX_SKB_CB(skb)->ipx_source_net; in ipxitf_send()
619 if (ipx->ipx_dest.net == intrfc->if_netnum) { in ipxitf_send()
648 if (ipx->ipx_source.net != intrfc->if_netnum) { in ipxitf_send()
656 if (++ipx->ipx_tctrl > ipxcfg_max_hops) in ipxitf_send()
698 struct ipxhdr *ipx = ipx_hdr(skb); in ipxitf_rcv() local
708 if (ipx->ipx_type == IPX_TYPE_PPROP) { in ipxitf_rcv()
722 if (ipx->ipx_type != IPX_TYPE_PPROP && in ipxitf_rcv()
736 if (!memcmp(ipx_broadcast_node, ipx->ipx_dest.node, IPX_NODE_LEN) || in ipxitf_rcv()
737 !memcmp(intrfc->if_node, ipx->ipx_dest.node, IPX_NODE_LEN)) { in ipxitf_rcv()
804 struct ipxhdr *ipx = ipx_hdr(skb); in ipxitf_pprop() local
815 ntohs(ipx->ipx_pktsize) < sizeof(struct ipxhdr) + in ipxitf_pprop()
828 c = ((u8 *) ipx) + sizeof(struct ipxhdr); in ipxitf_pprop()
1660 struct ipxhdr *ipx; in ipx_rcv() local
1684 ipx = ipx_hdr(skb); in ipx_rcv()
1685 if (ipx->ipx_checksum != IPX_NO_CHECKSUM && in ipx_rcv()
1686 ipx->ipx_checksum != ipx_cksum(ipx, ipx_pktsize)) in ipx_rcv()
1689 IPX_SKB_CB(skb)->ipx_tctrl = ipx->ipx_tctrl; in ipx_rcv()
1690 IPX_SKB_CB(skb)->ipx_dest_net = ipx->ipx_dest.net; in ipx_rcv()
1691 IPX_SKB_CB(skb)->ipx_source_net = ipx->ipx_source.net; in ipx_rcv()
1790 struct ipxhdr *ipx = NULL; in ipx_recvmsg() local
1824 ipx = ipx_hdr(skb); in ipx_recvmsg()
1825 copied = ntohs(ipx->ipx_pktsize) - sizeof(struct ipxhdr); in ipx_recvmsg()
1842 sipx->sipx_port = ipx->ipx_source.sock; in ipx_recvmsg()
1843 memcpy(sipx->sipx_node, ipx->ipx_source.node, IPX_NODE_LEN); in ipx_recvmsg()
1845 sipx->sipx_type = ipx->ipx_type; in ipx_recvmsg()