Deleted Added
full compact
ip_encap.h (83187) ip_encap.h (92723)
1/* $FreeBSD: head/sys/netinet/ip_encap.h 83187 2001-09-07 07:19:12Z julian $ */
1/* $FreeBSD: head/sys/netinet/ip_encap.h 92723 2002-03-19 21:25:46Z alfred $ */
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

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

38struct encaptab {
39 LIST_ENTRY(encaptab) chain;
40 int af;
41 int proto; /* -1: don't care, I'll check myself */
42 struct sockaddr_storage src; /* my addr */
43 struct sockaddr_storage srcmask;
44 struct sockaddr_storage dst; /* remote addr */
45 struct sockaddr_storage dstmask;
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

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

38struct encaptab {
39 LIST_ENTRY(encaptab) chain;
40 int af;
41 int proto; /* -1: don't care, I'll check myself */
42 struct sockaddr_storage src; /* my addr */
43 struct sockaddr_storage srcmask;
44 struct sockaddr_storage dst; /* remote addr */
45 struct sockaddr_storage dstmask;
46 int (*func) __P((const struct mbuf *, int, int, void *));
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
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 __P((void));
52void encap4_input __P((struct mbuf *, int));
53int encap6_input __P((struct mbuf **, int *, int));
54const struct encaptab *encap_attach __P((int, int, const struct sockaddr *,
51void encap_init(void);
52void encap4_input(struct mbuf *, 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 *,
55 const struct sockaddr *, const struct sockaddr *,
56 const struct sockaddr *, const struct protosw *, void *));
57const struct encaptab *encap_attach_func __P((int, int,
58 int (*) __P((const struct mbuf *, int, int, void *)),
59 const struct protosw *, void *));
60int encap_detach __P((const struct encaptab *));
61void *encap_getarg __P((struct mbuf *));
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_*/
62#endif
63
64#endif /*_NETINET_IP_ENCAP_H_*/