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
ifdefs for 4.2 compat
[unix-history]
/
usr
/
src
/
sys
/
netinet
/
in_pcb.h
diff --git
a/usr/src/sys/netinet/in_pcb.h
b/usr/src/sys/netinet/in_pcb.h
index
7438972
..
4e509b7
100644
(file)
--- a/
usr/src/sys/netinet/in_pcb.h
+++ b/
usr/src/sys/netinet/in_pcb.h
@@
-1,4
+1,10
@@
-/* in_pcb.h 4.2 81/12/03 */
+/*
+ * Copyright (c) 1982 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ * @(#)in_pcb.h 6.3 (Berkeley) %G%
+ */
/*
* Common structure pcb for internet protocol implementation.
/*
* Common structure pcb for internet protocol implementation.
@@
-18,8
+24,13
@@
struct inpcb {
u_short inp_lport; /* local port */
struct socket *inp_socket; /* back pointer to socket */
caddr_t inp_ppcb; /* pointer to per-protocol pcb */
u_short inp_lport; /* local port */
struct socket *inp_socket; /* back pointer to socket */
caddr_t inp_ppcb; /* pointer to per-protocol pcb */
+ struct route inp_route; /* placeholder for routing entry */
+ struct mbuf *inp_options; /* IP options */
};
};
+#define INPLOOKUP_WILDCARD 1
+#define INPLOOKUP_SETLOCAL 2
+
#define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
#ifdef KERNEL
#define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
#ifdef KERNEL