patch-2.4.2 linux/net/ax25/af_ax25.c
Next file: linux/net/ax25/ax25_in.c
Previous file: linux/net/ax25/Makefile
Back to the patch index
Back to the overall index
- Lines: 67
- Date:
Fri Feb 9 11:34:13 2001
- Orig file:
v2.4.1/linux/net/ax25/af_ax25.c
- Orig date:
Fri Dec 29 14:35:47 2000
diff -u --recursive --new-file v2.4.1/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -1782,10 +1782,9 @@
return(len);
}
-static struct net_proto_family ax25_family_ops =
-{
- PF_AX25,
- ax25_create
+static struct net_proto_family ax25_family_ops = {
+ family: PF_AX25,
+ create: ax25_create,
};
static struct proto_ops SOCKOPS_WRAPPED(ax25_proto_ops) = {
@@ -1814,18 +1813,13 @@
/*
* Called by socket.c on kernel start up
*/
-static struct packet_type ax25_packet_type =
-{
- 0, /* MUTTER ntohs(ETH_P_AX25),*/
- 0, /* copy */
- ax25_kiss_rcv,
- NULL,
- NULL,
+static struct packet_type ax25_packet_type = {
+ type: __constant_htons(ETH_P_AX25),
+ func: ax25_kiss_rcv,
};
static struct notifier_block ax25_dev_notifier = {
- ax25_device_event,
- 0
+ notifier_call: ax25_device_event,
};
EXPORT_SYMBOL(ax25_encapsulate);
@@ -1846,10 +1840,11 @@
EXPORT_SYMBOL(null_ax25_address);
EXPORT_SYMBOL(ax25_display_timer);
+static const char banner[] __initdata = KERN_INFO "NET4: G4KLX/GW4PTS AX.25 for Linux. Version 0.37 for Linux NET4.0\n";
+
static int __init ax25_init(void)
{
sock_register(&ax25_family_ops);
- ax25_packet_type.type = htons(ETH_P_AX25);
dev_add_pack(&ax25_packet_type);
register_netdevice_notifier(&ax25_dev_notifier);
ax25_register_sysctl();
@@ -1858,7 +1853,7 @@
proc_net_create("ax25", 0, ax25_get_info);
proc_net_create("ax25_calls", 0, ax25_uid_get_info);
- printk(KERN_INFO "NET4: G4KLX/GW4PTS AX.25 for Linux. Version 0.37 for Linux NET4.0\n");
+ printk(banner);
return 0;
}
module_init(ax25_init);
@@ -1879,7 +1874,6 @@
ax25_unregister_sysctl();
unregister_netdevice_notifier(&ax25_dev_notifier);
- ax25_packet_type.type = htons(ETH_P_AX25);
dev_remove_pack(&ax25_packet_type);
sock_unregister(PF_AX25);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)