Lines Matching defs:reason
193 * Table of reason codes to pass back to node which sent us a badly
195 * the reason field means "don't reply" otherwise a disc init is sent with
196 * the specified reason code.
199 unsigned short reason;
219 static struct sock *dn_find_listener(struct sk_buff *skb, unsigned short *reason)
321 *reason = ci_err_table[err].reason;
397 unsigned short reason;
402 reason = le16_to_cpu(*(__le16 *)skb->data);
405 scp->discdata_in.opt_status = cpu_to_le16(reason);
459 * messages depending upon the "reason" field.
464 unsigned short reason;
469 reason = le16_to_cpu(*(__le16 *)skb->data);
478 if (reason == NSP_REASON_DC)
480 if (reason == NSP_REASON_NL)
685 static int dn_nsp_no_socket(struct sk_buff *skb, unsigned short reason)
694 if ((reason != NSP_REASON_OK) && ((cb->nsp_flags & 0x0c) == 0x08)) {
698 dn_nsp_return_disc(skb, NSP_DISCINIT, reason);
702 dn_nsp_return_disc(skb, NSP_DISCCONF, reason);
718 unsigned short reason = NSP_REASON_NL;
745 sk = dn_find_listener(skb, &reason);
804 return dn_nsp_no_socket(skb, reason);