projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix spelling mistake
[unix-history]
/
usr
/
src
/
sys
/
deprecated
/
netpup
/
raw_pup.c
diff --git
a/usr/src/sys/deprecated/netpup/raw_pup.c
b/usr/src/sys/deprecated/netpup/raw_pup.c
index
6a5c427
..
56d2a4a
100644
(file)
--- a/
usr/src/sys/deprecated/netpup/raw_pup.c
+++ b/
usr/src/sys/deprecated/netpup/raw_pup.c
@@
-1,4
+1,4
@@
-/* raw_pup.c 4.
4 82/03/03
*/
+/* raw_pup.c 4.
7 82/03/10
*/
#include "../h/param.h"
#include "../h/mbuf.h"
#include "../h/param.h"
#include "../h/mbuf.h"
@@
-9,7
+9,8
@@
#include "../net/in_systm.h"
#include "../net/pup.h"
#include "../net/raw_cb.h"
#include "../net/in_systm.h"
#include "../net/pup.h"
#include "../net/raw_cb.h"
-#include "/usr/include/errno.h"
+#include "../net/if.h"
+#include "../errno.h"
/*
* Raw PUP protocol interface.
/*
* Raw PUP protocol interface.
@@
-26,8
+27,8
@@
COUNT(RPUP_CTLINPUT);
* Encapsulate packet in PUP header which is supplied by the
* user. This is done to allow user to specify PUP identifier.
*/
* Encapsulate packet in PUP header which is supplied by the
* user. This is done to allow user to specify PUP identifier.
*/
-rpup_output(m
0
, so)
-
struct mbuf *m0
;
+rpup_output(m, so)
+
register struct mbuf *m
;
struct socket *so;
{
register struct rawcb *rp = sotorawcb(so);
struct socket *so;
{
register struct rawcb *rp = sotorawcb(so);
@@
-43,7
+44,7
@@
COUNT(RPUP_OUTPUT);
* for the header and check parameters in it.
*/
if ((m->m_off > MMAXOFF || m->m_len < sizeof(struct pup_header)) &&
* for the header and check parameters in it.
*/
if ((m->m_off > MMAXOFF || m->m_len < sizeof(struct pup_header)) &&
- (m = m_pullup(m, sizeof(struct pup_header))
== 0) {
+ (m = m_pullup(m, sizeof(struct pup_header))
) == 0)
goto bad;
pup = mtod(m, struct pup_header *);
if (pup->pup_type == 0)
goto bad;
pup = mtod(m, struct pup_header *);
if (pup->pup_type == 0)
@@
-59,7
+60,7
@@
COUNT(RPUP_OUTPUT);
/*
* Insure proper source address is included.
*/
/*
* Insure proper source address is included.
*/
- spup = (struct sockad
rr_pup *)rp->rcb_socket->so_addr
;
+ spup = (struct sockad
dr_pup *)&(rp->rcb_socket->so_addr)
;
pup->pup_sport = spup->spup_addr;
/* for now, assume user generates PUP checksum. */
pup->pup_sport = spup->spup_addr;
/* for now, assume user generates PUP checksum. */