Deleted Added
full compact
if_stf.c (111119) if_stf.c (111888)
1/* $FreeBSD: head/sys/net/if_stf.c 111119 2003-02-19 05:47:46Z imp $ */
1/* $FreeBSD: head/sys/net/if_stf.c 111888 2003-03-04 23:19:55Z jlemon $ */
2/* $KAME: if_stf.c,v 1.73 2001/12/03 11:08:30 keiichi Exp $ */
3
4/*
5 * Copyright (C) 2000 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

609 struct mbuf *m;
610 int off;
611{
612 int proto;
613 struct stf_softc *sc;
614 struct ip *ip;
615 struct ip6_hdr *ip6;
616 u_int8_t otos, itos;
2/* $KAME: if_stf.c,v 1.73 2001/12/03 11:08:30 keiichi Exp $ */
3
4/*
5 * Copyright (C) 2000 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

609 struct mbuf *m;
610 int off;
611{
612 int proto;
613 struct stf_softc *sc;
614 struct ip *ip;
615 struct ip6_hdr *ip6;
616 u_int8_t otos, itos;
617 int len, isr;
618 struct ifqueue *ifq = NULL;
619 struct ifnet *ifp;
620
621 proto = mtod(m, struct ip *)->ip_p;
622
623 if (proto != IPPROTO_IPV6) {
624 m_freem(m);
625 return;
626 }

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

703 }
704
705 /*
706 * Put the packet to the network layer input queue according to the
707 * specified address family.
708 * See net/if_gif.c for possible issues with packet processing
709 * reorder due to extra queueing.
710 */
617 struct ifnet *ifp;
618
619 proto = mtod(m, struct ip *)->ip_p;
620
621 if (proto != IPPROTO_IPV6) {
622 m_freem(m);
623 return;
624 }

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

701 }
702
703 /*
704 * Put the packet to the network layer input queue according to the
705 * specified address family.
706 * See net/if_gif.c for possible issues with packet processing
707 * reorder due to extra queueing.
708 */
711 ifq = &ip6intrq;
712 isr = NETISR_IPV6;
713
714 len = m->m_pkthdr.len;
715 if (! IF_HANDOFF(ifq, m, NULL))
716 return;
717 schednetisr(isr);
718 ifp->if_ipackets++;
709 ifp->if_ipackets++;
719 ifp->if_ibytes += len;
710 ifp->if_ibytes += m->m_pkthdr.len;
711 netisr_dispatch(NETISR_IPV6, m);
720}
721
722/* ARGSUSED */
723static void
724stf_rtrequest(cmd, rt, info)
725 int cmd;
726 struct rtentry *rt;
727 struct rt_addrinfo *info;

--- 57 unchanged lines hidden ---
712}
713
714/* ARGSUSED */
715static void
716stf_rtrequest(cmd, rt, info)
717 int cmd;
718 struct rtentry *rt;
719 struct rt_addrinfo *info;

--- 57 unchanged lines hidden ---