ip_encap.h (139823) | ip_encap.h (269699) |
---|---|
1/* $FreeBSD: head/sys/netinet/ip_encap.h 139823 2005-01-07 01:45:51Z imp $ */ | 1/* $FreeBSD: head/sys/netinet/ip_encap.h 269699 2014-08-08 01:57:15Z kevlo $ */ |
2/* $KAME: ip_encap.h,v 1.7 2000/03/25 07:23:37 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 --- 34 unchanged lines hidden (view full) --- 44 struct sockaddr_storage dst; /* remote addr */ 45 struct sockaddr_storage dstmask; 46 int (*func)(const struct mbuf *, int, int, void *); 47 const struct protosw *psw; /* only pr_input will be used */ 48 void *arg; /* passed via m->m_pkthdr.aux */ 49}; 50 51void encap_init(void); | 2/* $KAME: ip_encap.h,v 1.7 2000/03/25 07:23:37 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 --- 34 unchanged lines hidden (view full) --- 44 struct sockaddr_storage dst; /* remote addr */ 45 struct sockaddr_storage dstmask; 46 int (*func)(const struct mbuf *, int, int, void *); 47 const struct protosw *psw; /* only pr_input will be used */ 48 void *arg; /* passed via m->m_pkthdr.aux */ 49}; 50 51void encap_init(void); |
52void encap4_input(struct mbuf *, int); | 52int encap4_input(struct mbuf **, int *, int); |
53int encap6_input(struct mbuf **, int *, int); 54const struct encaptab *encap_attach(int, int, const struct sockaddr *, 55 const struct sockaddr *, const struct sockaddr *, 56 const struct sockaddr *, const struct protosw *, void *); 57const struct encaptab *encap_attach_func(int, int, 58 int (*)(const struct mbuf *, int, int, void *), 59 const struct protosw *, void *); 60int encap_detach(const struct encaptab *); 61void *encap_getarg(struct mbuf *); 62#endif 63 64#endif /*_NETINET_IP_ENCAP_H_*/ | 53int encap6_input(struct mbuf **, int *, int); 54const struct encaptab *encap_attach(int, int, const struct sockaddr *, 55 const struct sockaddr *, const struct sockaddr *, 56 const struct sockaddr *, const struct protosw *, void *); 57const struct encaptab *encap_attach_func(int, int, 58 int (*)(const struct mbuf *, int, int, void *), 59 const struct protosw *, void *); 60int encap_detach(const struct encaptab *); 61void *encap_getarg(struct mbuf *); 62#endif 63 64#endif /*_NETINET_IP_ENCAP_H_*/ |