if_stf.c (92081) | if_stf.c (92725) |
---|---|
1/* $FreeBSD: head/sys/net/if_stf.c 92081 2002-03-11 09:26:07Z mux $ */ | 1/* $FreeBSD: head/sys/net/if_stf.c 92725 2002-03-19 21:54:18Z alfred $ */ |
2/* $KAME: if_stf.c,v 1.62 2001/06/07 22:32:16 itojun 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 --- 130 unchanged lines hidden (view full) --- 140struct protosw in_stf_protosw = 141{ SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR, 142 in_stf_input, (pr_output_t*)rip_output, 0, rip_ctloutput, 143 0, 144 0, 0, 0, 0, 145 &rip_usrreqs 146}; 147 | 2/* $KAME: if_stf.c,v 1.62 2001/06/07 22:32:16 itojun 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 --- 130 unchanged lines hidden (view full) --- 140struct protosw in_stf_protosw = 141{ SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR, 142 in_stf_input, (pr_output_t*)rip_output, 0, rip_ctloutput, 143 0, 144 0, 0, 0, 0, 145 &rip_usrreqs 146}; 147 |
148static int stfmodevent __P((module_t, int, void *)); 149static int stf_encapcheck __P((const struct mbuf *, int, int, void *)); 150static struct in6_ifaddr *stf_getsrcifa6 __P((struct ifnet *)); 151static int stf_output __P((struct ifnet *, struct mbuf *, struct sockaddr *, 152 struct rtentry *)); 153static int stf_checkaddr4 __P((struct stf_softc *, struct in_addr *, 154 struct ifnet *)); 155static int stf_checkaddr6 __P((struct stf_softc *, struct in6_addr *, 156 struct ifnet *)); 157static void stf_rtrequest __P((int, struct rtentry *, struct rt_addrinfo *)); 158static int stf_ioctl __P((struct ifnet *, u_long, caddr_t)); | 148static int stfmodevent(module_t, int, void *); 149static int stf_encapcheck(const struct mbuf *, int, int, void *); 150static struct in6_ifaddr *stf_getsrcifa6(struct ifnet *); 151static int stf_output(struct ifnet *, struct mbuf *, struct sockaddr *, 152 struct rtentry *); 153static int stf_checkaddr4(struct stf_softc *, struct in_addr *, 154 struct ifnet *); 155static int stf_checkaddr6(struct stf_softc *, struct in6_addr *, 156 struct ifnet *); 157static void stf_rtrequest(int, struct rtentry *, struct rt_addrinfo *); 158static int stf_ioctl(struct ifnet *, u_long, caddr_t); |
159 | 159 |
160int stf_clone_create __P((struct if_clone *, int)); 161int stf_clone_destroy __P((struct ifnet *)); | 160int stf_clone_create(struct if_clone *, int); 161int stf_clone_destroy(struct ifnet *); |
162 163/* only one clone is currently allowed */ 164struct if_clone stf_cloner = 165 IF_CLONE_INITIALIZER(STFNAME, stf_clone_create, stf_clone_destroy, 0); 166 167int 168stf_clone_create(ifc, unit) 169 struct if_clone *ifc; --- 548 unchanged lines hidden --- | 162 163/* only one clone is currently allowed */ 164struct if_clone stf_cloner = 165 IF_CLONE_INITIALIZER(STFNAME, stf_clone_create, stf_clone_destroy, 0); 166 167int 168stf_clone_create(ifc, unit) 169 struct if_clone *ifc; --- 548 unchanged lines hidden --- |