Deleted Added
full compact
ip_dummynet.h (50477) ip_dummynet.h (55009)
1/*
2 * Copyright (c) 1998 Luigi Rizzo
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due
9 * but requiring it would be too onerous.
10 *
11 * This software is provided ``AS IS'' without any warranties of any kind.
12 *
1/*
2 * Copyright (c) 1998 Luigi Rizzo
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due
9 * but requiring it would be too onerous.
10 *
11 * This software is provided ``AS IS'' without any warranties of any kind.
12 *
13 * $FreeBSD: head/sys/netinet/ip_dummynet.h 50477 1999-08-28 01:08:13Z peter $
13 * $FreeBSD: head/sys/netinet/ip_dummynet.h 55009 1999-12-22 19:13:38Z shin $
14 */
15
16#ifndef _IP_DUMMYNET_H
17#define _IP_DUMMYNET_H
18
19/*
20 * Definition of dummynet data structures.
21 * Dummynet handles a list of pipes, each one identified by a unique

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

39 struct m_hdr hdr ;
40#define dn_next hdr.mh_nextpkt /* next element in queue */
41#define dn_m hdr.mh_next /* packet to be forwarded */
42#define dn_dst hdr.mh_len /* dst, for ip_output */
43#define dn_dir hdr.mh_flags /* IP_FW_F_IN or IP_FW_F_OUT */
44 int delay; /* stays queued until delay=0 */
45 struct ifnet *ifp; /* interface, for ip_output */
46 struct route ro; /* route, for ip_output. MUST COPY */
14 */
15
16#ifndef _IP_DUMMYNET_H
17#define _IP_DUMMYNET_H
18
19/*
20 * Definition of dummynet data structures.
21 * Dummynet handles a list of pipes, each one identified by a unique

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

39 struct m_hdr hdr ;
40#define dn_next hdr.mh_nextpkt /* next element in queue */
41#define dn_m hdr.mh_next /* packet to be forwarded */
42#define dn_dst hdr.mh_len /* dst, for ip_output */
43#define dn_dir hdr.mh_flags /* IP_FW_F_IN or IP_FW_F_OUT */
44 int delay; /* stays queued until delay=0 */
45 struct ifnet *ifp; /* interface, for ip_output */
46 struct route ro; /* route, for ip_output. MUST COPY */
47 int flags; /* flags, for ip_output */
47
48#ifdef DUMMYNET_DEBUG
49 struct timeval beg, mid; /* testing only */
50 int act_delay; /* testing only */
51 int in_delay; /* testing only */
52#endif
53};
54

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

104
105typedef int ip_dn_ctl_t __P((struct sockopt *)) ;
106extern ip_dn_ctl_t *ip_dn_ctl_ptr;
107
108void dn_rule_delete(void *r); /* used in ip_fw.c */
109int dummynet_io(int pipe, int dir,
110 struct mbuf *m, struct ifnet *ifp, struct route *ro,
111 struct sockaddr_in * dst,
48
49#ifdef DUMMYNET_DEBUG
50 struct timeval beg, mid; /* testing only */
51 int act_delay; /* testing only */
52 int in_delay; /* testing only */
53#endif
54};
55

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

105
106typedef int ip_dn_ctl_t __P((struct sockopt *)) ;
107extern ip_dn_ctl_t *ip_dn_ctl_ptr;
108
109void dn_rule_delete(void *r); /* used in ip_fw.c */
110int dummynet_io(int pipe, int dir,
111 struct mbuf *m, struct ifnet *ifp, struct route *ro,
112 struct sockaddr_in * dst,
112 struct ip_fw_chain *rule);
113 struct ip_fw_chain *rule, int flags);
113#endif /* KERNEL */
114
115#endif /* _IP_DUMMYNET_H */
114#endif /* KERNEL */
115
116#endif /* _IP_DUMMYNET_H */