1/*
2 * Copyright (c) 1998-2002 Luigi Rizzo, Universita` di Pisa
3 * Portions Copyright (c) 2000 Akamba Corp.
4 * All rights reserved
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 10 unchanged lines hidden (view full) ---
19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/netinet/ip_dummynet.c 104975 2002-10-12 07:45:23Z seanc $
28 */
29
30#define DEB(x)
31#define DDB(x) x
32
33/*
34 * This module implements IP dummynet, a bandwidth limiter/delay emulator
35 * used in conjunction with the ipfw package.
--- 381 unchanged lines hidden (view full) ---
417 * m_type = MT_TAG, m_flags = PACKET_TAG_DUMMYNET
418 * dn_m (m_next) = actual mbuf to be processed by ip_input/output
419 * and some other fields.
420 * The block IS FREED HERE because it contains parameters passed
421 * to the called routine.
422 */
423 switch (pkt->dn_dir) {
424 case DN_TO_IP_OUT:
425 (void)ip_output((struct mbuf *)pkt, NULL, NULL, 0, NULL);
426 rt_unref (pkt->ro.ro_rt) ;
427 break ;
428
429 case DN_TO_IP_IN :
430 ip_input((struct mbuf *)pkt) ;
431 break ;
432
433 case DN_TO_BDG_FWD :
--- 1538 unchanged lines hidden ---
2 * Copyright (c) 1998-2002 Luigi Rizzo, Universita` di Pisa
3 * Portions Copyright (c) 2000 Akamba Corp.
4 * All rights reserved
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 10 unchanged lines hidden (view full) ---
19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/netinet/ip_dummynet.c 104975 2002-10-12 07:45:23Z seanc $
28 */
29
30#define DEB(x)
31#define DDB(x) x
32
33/*
34 * This module implements IP dummynet, a bandwidth limiter/delay emulator
35 * used in conjunction with the ipfw package.
--- 381 unchanged lines hidden (view full) ---
417 * m_type = MT_TAG, m_flags = PACKET_TAG_DUMMYNET
418 * dn_m (m_next) = actual mbuf to be processed by ip_input/output
419 * and some other fields.
420 * The block IS FREED HERE because it contains parameters passed
421 * to the called routine.
422 */
423 switch (pkt->dn_dir) {
424 case DN_TO_IP_OUT:
425 (void)ip_output((struct mbuf *)pkt, NULL, NULL, 0, NULL);
426 rt_unref (pkt->ro.ro_rt) ;
427 break ;
428
429 case DN_TO_IP_IN :
430 ip_input((struct mbuf *)pkt) ;
431 break ;
432
433 case DN_TO_BDG_FWD :
--- 1538 unchanged lines hidden ---