Deleted Added
full compact
if.h (1542) if.h (1549)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109 u_long ifi_obytes; /* total number of octets sent */
110 u_long ifi_imcasts; /* packets received via multicast */
111 u_long ifi_omcasts; /* packets sent via multicast */
112 u_long ifi_iqdrops; /* dropped on input, this interface */
113 u_long ifi_noproto; /* destined for unsupported protocol */
114 struct timeval ifi_lastchange;/* last updated */
115 } if_data;
116/* procedure handles */
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109 u_long ifi_obytes; /* total number of octets sent */
110 u_long ifi_imcasts; /* packets received via multicast */
111 u_long ifi_omcasts; /* packets sent via multicast */
112 u_long ifi_iqdrops; /* dropped on input, this interface */
113 u_long ifi_noproto; /* destined for unsupported protocol */
114 struct timeval ifi_lastchange;/* last updated */
115 } if_data;
116/* procedure handles */
117 int (*if_init) /* init routine */
117 void (*if_init) /* init routine */
118 __P((int));
119 int (*if_output) /* output routine (enqueue) */
120 __P((struct ifnet *, struct mbuf *, struct sockaddr *,
121 struct rtentry *));
118 __P((int));
119 int (*if_output) /* output routine (enqueue) */
120 __P((struct ifnet *, struct mbuf *, struct sockaddr *,
121 struct rtentry *));
122 int (*if_start) /* initiate output routine */
122 void (*if_start) /* initiate output routine */
123 __P((struct ifnet *));
124 int (*if_done) /* output complete routine */
125 __P((struct ifnet *)); /* (XXX not used; fake prototype) */
126 int (*if_ioctl) /* ioctl routine */
127 __P((struct ifnet *, int, caddr_t));
123 __P((struct ifnet *));
124 int (*if_done) /* output complete routine */
125 __P((struct ifnet *)); /* (XXX not used; fake prototype) */
126 int (*if_ioctl) /* ioctl routine */
127 __P((struct ifnet *, int, caddr_t));
128 int (*if_reset)
128 void (*if_reset)
129 __P((int)); /* new autoconfig will permit removal */
129 __P((int)); /* new autoconfig will permit removal */
130 int (*if_watchdog) /* timer routine */
130 void (*if_watchdog) /* timer routine */
131 __P((int));
132 struct ifqueue {
133 struct mbuf *ifq_head;
134 struct mbuf *ifq_tail;
135 int ifq_len;
136 int ifq_maxlen;
137 int ifq_drops;
138 } if_snd; /* output queue */

--- 212 unchanged lines hidden (view full) ---

351struct ifaddr *ifa_ifwithnet __P((struct sockaddr *));
352struct ifaddr *ifa_ifwithroute __P((int, struct sockaddr *,
353 struct sockaddr *));
354struct ifaddr *ifaof_ifpforaddr __P((struct sockaddr *, struct ifnet *));
355void ifafree __P((struct ifaddr *));
356void link_rtrequest __P((int, struct rtentry *, struct sockaddr *));
357
358int loioctl __P((struct ifnet *, int, caddr_t));
131 __P((int));
132 struct ifqueue {
133 struct mbuf *ifq_head;
134 struct mbuf *ifq_tail;
135 int ifq_len;
136 int ifq_maxlen;
137 int ifq_drops;
138 } if_snd; /* output queue */

--- 212 unchanged lines hidden (view full) ---

351struct ifaddr *ifa_ifwithnet __P((struct sockaddr *));
352struct ifaddr *ifa_ifwithroute __P((int, struct sockaddr *,
353 struct sockaddr *));
354struct ifaddr *ifaof_ifpforaddr __P((struct sockaddr *, struct ifnet *));
355void ifafree __P((struct ifaddr *));
356void link_rtrequest __P((int, struct rtentry *, struct sockaddr *));
357
358int loioctl __P((struct ifnet *, int, caddr_t));
359void loopattach __P((int));
359void loopattach __P((void));
360int looutput __P((struct ifnet *,
361 struct mbuf *, struct sockaddr *, struct rtentry *));
362void lortrequest __P((int, struct rtentry *, struct sockaddr *));
363#endif
360int looutput __P((struct ifnet *,
361 struct mbuf *, struct sockaddr *, struct rtentry *));
362void lortrequest __P((int, struct rtentry *, struct sockaddr *));
363#endif