diff options
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r-- | net/appletalk/ddp.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 5abce07fb50a..d6a9243641af 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
@@ -1571,14 +1571,10 @@ static int atalk_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr | |||
1571 | usat->sat_family != AF_APPLETALK) | 1571 | usat->sat_family != AF_APPLETALK) |
1572 | return -EINVAL; | 1572 | return -EINVAL; |
1573 | 1573 | ||
1574 | /* netatalk doesn't implement this check */ | 1574 | /* netatalk didn't implement this check */ |
1575 | if (usat->sat_addr.s_node == ATADDR_BCAST && | 1575 | if (usat->sat_addr.s_node == ATADDR_BCAST && |
1576 | !sock_flag(sk, SOCK_BROADCAST)) { | 1576 | !sock_flag(sk, SOCK_BROADCAST)) { |
1577 | printk(KERN_INFO "SO_BROADCAST: Fix your netatalk as " | ||
1578 | "it will break before 2.2\n"); | ||
1579 | #if 0 | ||
1580 | return -EPERM; | 1577 | return -EPERM; |
1581 | #endif | ||
1582 | } | 1578 | } |
1583 | } else { | 1579 | } else { |
1584 | if (sk->sk_state != TCP_ESTABLISHED) | 1580 | if (sk->sk_state != TCP_ESTABLISHED) |
@@ -1860,13 +1856,13 @@ static struct notifier_block ddp_notifier = { | |||
1860 | .notifier_call = ddp_device_event, | 1856 | .notifier_call = ddp_device_event, |
1861 | }; | 1857 | }; |
1862 | 1858 | ||
1863 | static struct packet_type ltalk_packet_type = { | 1859 | static struct packet_type ltalk_packet_type __read_mostly = { |
1864 | .type = __constant_htons(ETH_P_LOCALTALK), | 1860 | .type = cpu_to_be16(ETH_P_LOCALTALK), |
1865 | .func = ltalk_rcv, | 1861 | .func = ltalk_rcv, |
1866 | }; | 1862 | }; |
1867 | 1863 | ||
1868 | static struct packet_type ppptalk_packet_type = { | 1864 | static struct packet_type ppptalk_packet_type __read_mostly = { |
1869 | .type = __constant_htons(ETH_P_PPPTALK), | 1865 | .type = cpu_to_be16(ETH_P_PPPTALK), |
1870 | .func = atalk_rcv, | 1866 | .func = atalk_rcv, |
1871 | }; | 1867 | }; |
1872 | 1868 | ||
@@ -1877,7 +1873,7 @@ EXPORT_SYMBOL(aarp_send_ddp); | |||
1877 | EXPORT_SYMBOL(atrtr_get_dev); | 1873 | EXPORT_SYMBOL(atrtr_get_dev); |
1878 | EXPORT_SYMBOL(atalk_find_dev_addr); | 1874 | EXPORT_SYMBOL(atalk_find_dev_addr); |
1879 | 1875 | ||
1880 | static char atalk_err_snap[] __initdata = | 1876 | static const char atalk_err_snap[] __initconst = |
1881 | KERN_CRIT "Unable to register DDP with SNAP.\n"; | 1877 | KERN_CRIT "Unable to register DDP with SNAP.\n"; |
1882 | 1878 | ||
1883 | /* Called by proto.c on kernel start up */ | 1879 | /* Called by proto.c on kernel start up */ |