patch-2.1.68 linux/net/ax25/ax25_out.c
Next file: linux/net/ax25/ax25_subr.c
Previous file: linux/net/ax25/ax25_ip.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Nov 30 14:00:39 1997
- Orig file:
v2.1.67/linux/net/ax25/ax25_out.c
- Orig date:
Mon Jul 7 08:19:59 1997
diff -u --recursive --new-file v2.1.67/linux/net/ax25/ax25_out.c linux/net/ax25/ax25_out.c
@@ -58,8 +58,16 @@
ax25_dev *ax25_dev;
ax25_cb *ax25;
- if (skb == NULL)
- return 0;
+ /*
+ * Take the default packet length for the device if zero is
+ * specified.
+ */
+ if (paclen == 0) {
+ if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL)
+ return NULL;
+
+ paclen = ax25_dev->values[AX25_VALUES_PACLEN];
+ }
/*
* Look for an existing connection.
@@ -339,7 +347,6 @@
ax25_addr_build(ptr, &ax25->source_addr, &ax25->dest_addr, ax25->digipeat, type, ax25->modulus);
skb->dev = ax25->ax25_dev->dev;
- skb->priority = SOPRI_NORMAL;
ax25_queue_xmit(skb);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov