summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-03-25 05:29:54 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-03-25 05:29:54 +0000
commite791c230296b1446c8f01cd13ed8a53c3e786fe1 (patch)
tree91fb0c9a66c2591697f015bfb4f76fb4f1146ec1 /cpukit/libnetworking/net
parent2007-03-24 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-e791c230296b1446c8f01cd13ed8a53c3e786fe1.tar.bz2
Partial update from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/net')
-rw-r--r--cpukit/libnetworking/net/raw_cb.h26
-rw-r--r--cpukit/libnetworking/net/raw_usrreq.c8
-rw-r--r--cpukit/libnetworking/net/route.h13
3 files changed, 22 insertions, 25 deletions
diff --git a/cpukit/libnetworking/net/raw_cb.h b/cpukit/libnetworking/net/raw_cb.h
index ee8f14e822..e9027329bf 100644
--- a/cpukit/libnetworking/net/raw_cb.h
+++ b/cpukit/libnetworking/net/raw_cb.h
@@ -10,10 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -31,6 +27,10 @@
* SUCH DAMAGE.
*
* @(#)raw_cb.h 8.1 (Berkeley) 6/10/93
+ * $FreeBSD: src/sys/net/raw_cb.h,v 1.19 2005/01/07 01:45:35 imp Exp $
+ */
+
+/*
* $Id$
*/
@@ -61,15 +61,15 @@ struct rawcb {
#ifdef _KERNEL
extern struct rawcb rawcb; /* head of list */
-int raw_attach __P((struct socket *, int));
-void raw_ctlinput __P((int, struct sockaddr *, void *));
-void raw_detach __P((struct rawcb *));
-void raw_disconnect __P((struct rawcb *));
-void raw_init __P((void));
-void raw_input __P((struct mbuf *,
- struct sockproto *, struct sockaddr *, struct sockaddr *));
-int raw_usrreq __P((struct socket *,
- int, struct mbuf *, struct mbuf *, struct mbuf *));
+int raw_attach(struct socket *, int);
+void raw_ctlinput(int, struct sockaddr *, void *);
+void raw_detach(struct rawcb *);
+void raw_disconnect(struct rawcb *);
+void raw_init(void);
+void raw_input(struct mbuf *,
+ struct sockproto *, struct sockaddr *, struct sockaddr *);
+int raw_usrreq(struct socket *,
+ int, struct mbuf *, struct mbuf *, struct mbuf *);
#endif
#endif
diff --git a/cpukit/libnetworking/net/raw_usrreq.c b/cpukit/libnetworking/net/raw_usrreq.c
index bb79355d1f..089e18434d 100644
--- a/cpukit/libnetworking/net/raw_usrreq.c
+++ b/cpukit/libnetworking/net/raw_usrreq.c
@@ -10,10 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -31,6 +27,10 @@
* SUCH DAMAGE.
*
* @(#)raw_usrreq.c 8.1 (Berkeley) 6/10/93
+ * $FreeBSD: src/sys/net/raw_usrreq.c,v 1.44 2006/11/06 13:42:02 rwatson Exp $
+ */
+
+/*
* $Id$
*/
diff --git a/cpukit/libnetworking/net/route.h b/cpukit/libnetworking/net/route.h
index bb64d150c8..e0f809e015 100644
--- a/cpukit/libnetworking/net/route.h
+++ b/cpukit/libnetworking/net/route.h
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*
* @(#)route.h 8.4 (Berkeley) 1/9/95
- * $FreeBSD: src/sys/net/route.h,v 1.62 2004/10/05 19:48:33 sam Exp $
+ * $FreeBSD: src/sys/net/route.h,v 1.65 2006/03/15 19:39:09 andre Exp $
*/
/*
@@ -115,9 +115,6 @@ struct rtentry {
struct sockaddr *rt_genmask; /* for generation of cloned routes */
caddr_t rt_llinfo; /* pointer to link level info cache */
struct rtentry *rt_gwroute; /* implied entry for gatewayed routes */
- int (*rt_output) __P((struct ifnet *, struct mbuf *,
- struct sockaddr *, struct rtentry *));
- /* output routine for this (rt,if) */
struct rtentry *rt_parent; /* cloning parent of this route */
};
@@ -277,18 +274,18 @@ struct route_cb {
extern struct route_cb route_cb;
extern struct radix_node_head *rt_tables[AF_MAX+1];
-void route_init __P((void));
+void route_init(void);
void rt_ifmsg(struct ifnet *);
void rt_missmsg(int, struct rt_addrinfo *, int, int);
void rt_newaddrmsg(int, struct ifaddr *, int, struct rtentry *);
int rt_setgate(struct rtentry *, struct sockaddr *, struct sockaddr *);
-void rtalloc_ign __P((struct route *, unsigned long));
+void rtalloc_ign(struct route *, unsigned long);
void rtalloc(struct route *ro); /* XXX deprecated, use rtalloc_ign(ro, 0) */
struct rtentry *
- rtalloc1 __P((struct sockaddr *, int, unsigned long));
+ rtalloc1(struct sockaddr *, int, unsigned long);
void rtfree(struct rtentry *);
int rtinit(struct ifaddr *, int, int);
-int rtioctl __P((int, caddr_t, struct proc *));
+int rtioctl(int, caddr_t, struct proc *);
void rtredirect(struct sockaddr *, struct sockaddr *,
struct sockaddr *, int, struct sockaddr *, struct rtentry **);
int rtrequest(int, struct sockaddr *,