Lines Matching full:reason
191 * Table of reason codes to pass back to node which sent us a badly
193 * the reason field means "don't reply" otherwise a disc init is sent with
194 * the specified reason code.
197 unsigned short reason; member
217 static struct sock *dn_find_listener(struct sk_buff *skb, unsigned short *reason) in dn_find_listener() argument
319 *reason = ci_err_table[err].reason; in dn_find_listener()
395 unsigned short reason; in dn_nsp_disc_init() local
400 reason = le16_to_cpu(*(__le16 *)skb->data); in dn_nsp_disc_init()
403 scp->discdata_in.opt_status = cpu_to_le16(reason); in dn_nsp_disc_init()
457 * messages depending upon the "reason" field.
462 unsigned short reason; in dn_nsp_disc_conf() local
467 reason = le16_to_cpu(*(__le16 *)skb->data); in dn_nsp_disc_conf()
476 if (reason == NSP_REASON_DC) in dn_nsp_disc_conf()
478 if (reason == NSP_REASON_NL) in dn_nsp_disc_conf()
682 static int dn_nsp_no_socket(struct sk_buff *skb, unsigned short reason) in dn_nsp_no_socket() argument
691 if ((reason != NSP_REASON_OK) && ((cb->nsp_flags & 0x0c) == 0x08)) { in dn_nsp_no_socket()
695 dn_nsp_return_disc(skb, NSP_DISCINIT, reason); in dn_nsp_no_socket()
699 dn_nsp_return_disc(skb, NSP_DISCCONF, reason); in dn_nsp_no_socket()
716 unsigned short reason = NSP_REASON_NL; in dn_nsp_rx_packet() local
743 sk = dn_find_listener(skb, &reason); in dn_nsp_rx_packet()
798 return dn_nsp_no_socket(skb, reason); in dn_nsp_rx_packet()