if_gif.h (147256) | if_gif.h (153621) |
---|---|
1/* $FreeBSD: head/sys/net/if_gif.h 147256 2005-06-10 16:49:24Z brooks $ */ | 1/* $FreeBSD: head/sys/net/if_gif.h 153621 2005-12-21 21:29:45Z thompsa $ */ |
2/* $KAME: if_gif.h,v 1.17 2000/09/11 11:36:41 sumikawa Exp $ */ 3 4/*- 5 * Copyright (C) 1995, 1996, 1997, and 1998 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 --- 70 unchanged lines hidden (view full) --- 80 81#define GIF_MTU (1280) /* Default MTU */ 82#define GIF_MTU_MIN (1280) /* Minimum MTU */ 83#define GIF_MTU_MAX (8192) /* Maximum MTU */ 84 85#define MTAG_GIF 1080679712 86#define MTAG_GIF_CALLED 0 87 | 2/* $KAME: if_gif.h,v 1.17 2000/09/11 11:36:41 sumikawa Exp $ */ 3 4/*- 5 * Copyright (C) 1995, 1996, 1997, and 1998 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 --- 70 unchanged lines hidden (view full) --- 80 81#define GIF_MTU (1280) /* Default MTU */ 82#define GIF_MTU_MIN (1280) /* Minimum MTU */ 83#define GIF_MTU_MAX (8192) /* Maximum MTU */ 84 85#define MTAG_GIF 1080679712 86#define MTAG_GIF_CALLED 0 87 |
88struct etherip_header { 89 u_int8_t eip_ver; /* version/reserved */ 90 u_int8_t eip_pad; /* required padding byte */ 91}; 92#define ETHERIP_VER_VERS_MASK 0x0f 93#define ETHERIP_VER_RSVD_MASK 0xf0 94#define ETHERIP_VERSION 0x03 95 |
|
88/* Prototypes */ 89void gifattach0(struct gif_softc *); 90void gif_input(struct mbuf *, int, struct ifnet *); 91int gif_output(struct ifnet *, struct mbuf *, struct sockaddr *, 92 struct rtentry *); 93int gif_ioctl(struct ifnet *, u_long, caddr_t); 94int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *); 95void gif_delete_tunnel(struct ifnet *); 96int gif_encapcheck(const struct mbuf *, int, int, void *); 97 98#endif /* _KERNEL */ 99 100#endif /* _NET_IF_GIF_H_ */ | 96/* Prototypes */ 97void gifattach0(struct gif_softc *); 98void gif_input(struct mbuf *, int, struct ifnet *); 99int gif_output(struct ifnet *, struct mbuf *, struct sockaddr *, 100 struct rtentry *); 101int gif_ioctl(struct ifnet *, u_long, caddr_t); 102int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *); 103void gif_delete_tunnel(struct ifnet *); 104int gif_encapcheck(const struct mbuf *, int, int, void *); 105 106#endif /* _KERNEL */ 107 108#endif /* _NET_IF_GIF_H_ */ |