Deleted Added
sdiff udiff text old ( 111119 ) new ( 111888 )
full compact
1/* $FreeBSD: head/sys/net/if_stf.c 111119 2003-02-19 05:47:46Z imp $ */
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 */
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++;
719 ifp->if_ibytes += len;
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 ---