at_proto.c (26393) | at_proto.c (29185) |
---|---|
1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 * 5 * Permission to use, copy, modify, and distribute this software and 6 * its documentation for any purpose and without fee is hereby granted, 7 * provided that the above copyright notice appears in all copies and 8 * that both that copyright notice and this permission notice appear --- 27 unchanged lines hidden (view full) --- 36#include <net/route.h> 37 38#include <netatalk/at.h> 39#include <netatalk/ddp.h> 40#include <netatalk/at_var.h> 41#include <netatalk/ddp_var.h> 42#include <netatalk/at_extern.h> 43 | 1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 * 5 * Permission to use, copy, modify, and distribute this software and 6 * its documentation for any purpose and without fee is hereby granted, 7 * provided that the above copyright notice appears in all copies and 8 * that both that copyright notice and this permission notice appear --- 27 unchanged lines hidden (view full) --- 36#include <net/route.h> 37 38#include <netatalk/at.h> 39#include <netatalk/ddp.h> 40#include <netatalk/at_var.h> 41#include <netatalk/ddp_var.h> 42#include <netatalk/at_extern.h> 43 |
44extern struct domain atalkdomain; |
|
44 | 45 |
45struct protosw atalksw[] = { | 46static struct protosw atalksw[] = { |
46 { 47 /* Identifiers */ 48 SOCK_DGRAM, &atalkdomain, ATPROTO_DDP, PR_ATOMIC|PR_ADDR, 49 /* 50 * protocol-protocol interface. 51 * fields are pr_input, pr_output, pr_ctlinput, and pr_ctloutput. 52 * pr_input can be called from the udp protocol stack for iptalk 53 * packets bound for a local socket. --- 4 unchanged lines hidden (view full) --- 58 /* socket-protocol interface. deprecated */ 59 NULL, 60 /* utility routines. */ 61 ddp_init, 0, 0, 0, 62 &ddp_usrreqs 63 }, 64}; 65 | 47 { 48 /* Identifiers */ 49 SOCK_DGRAM, &atalkdomain, ATPROTO_DDP, PR_ATOMIC|PR_ADDR, 50 /* 51 * protocol-protocol interface. 52 * fields are pr_input, pr_output, pr_ctlinput, and pr_ctloutput. 53 * pr_input can be called from the udp protocol stack for iptalk 54 * packets bound for a local socket. --- 4 unchanged lines hidden (view full) --- 59 /* socket-protocol interface. deprecated */ 60 NULL, 61 /* utility routines. */ 62 ddp_init, 0, 0, 0, 63 &ddp_usrreqs 64 }, 65}; 66 |
66struct domain atalkdomain = { | 67static struct domain atalkdomain = { |
67 AF_APPLETALK, "appletalk", 0, 0, 0, 68 atalksw, &atalksw[sizeof(atalksw)/sizeof(atalksw[0])], 69 0, rn_inithead, 70 8 * (u_long) &((struct sockaddr_at *) 0)->sat_addr, 71 sizeof(struct sockaddr_at) 72}; 73 74DOMAIN_SET(atalk); 75 | 68 AF_APPLETALK, "appletalk", 0, 0, 0, 69 atalksw, &atalksw[sizeof(atalksw)/sizeof(atalksw[0])], 70 0, rn_inithead, 71 8 * (u_long) &((struct sockaddr_at *) 0)->sat_addr, 72 sizeof(struct sockaddr_at) 73}; 74 75DOMAIN_SET(atalk); 76 |