Annotation of embedaddon/libpdel/ppp/ppp_manager.c, revision 1.1.1.1
1.1 misho 1:
2: /*
3: * Copyright (c) 2001-2002 Packet Design, LLC.
4: * All rights reserved.
5: *
6: * Subject to the following obligations and disclaimer of warranty,
7: * use and redistribution of this software, in source or object code
8: * forms, with or without modifications are expressly permitted by
9: * Packet Design; provided, however, that:
10: *
11: * (i) Any and all reproductions of the source or object code
12: * must include the copyright notice above and the following
13: * disclaimer of warranties; and
14: * (ii) No rights are granted, in any manner or form, to use
15: * Packet Design trademarks, including the mark "PACKET DESIGN"
16: * on advertising, endorsements, or otherwise except as such
17: * appears in the above copyright notice or in the software.
18: *
19: * THIS SOFTWARE IS BEING PROVIDED BY PACKET DESIGN "AS IS", AND
20: * TO THE MAXIMUM EXTENT PERMITTED BY LAW, PACKET DESIGN MAKES NO
21: * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING
22: * THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED
23: * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
24: * OR NON-INFRINGEMENT. PACKET DESIGN DOES NOT WARRANT, GUARANTEE,
25: * OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS
26: * OF THE USE OF THIS SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY,
27: * RELIABILITY OR OTHERWISE. IN NO EVENT SHALL PACKET DESIGN BE
28: * LIABLE FOR ANY DAMAGES RESULTING FROM OR ARISING OUT OF ANY USE
29: * OF THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, ANY DIRECT,
30: * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL
31: * DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF
32: * USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY THEORY OF
33: * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
35: * THE USE OF THIS SOFTWARE, EVEN IF PACKET DESIGN IS ADVISED OF
36: * THE POSSIBILITY OF SUCH DAMAGE.
37: *
38: * Author: Archie Cobbs <archie@freebsd.org>
39: */
40:
41: #include "ppp/ppp_defs.h"
42: #include "ppp/ppp_log.h"
43: #include "ppp/ppp_manager.h"
44:
45: void *
46: ppp_manager_bundle_config(struct ppp_manager *manager,
47: struct ppp_link *link, struct ppp_bundle_config *conf)
48: {
49: return ((*manager->meth->bundle_config)(manager, link, conf));
50: }
51:
52: void *
53: ppp_manager_bundle_plumb(struct ppp_manager *manager,
54: struct ppp_bundle *bundle, const char *path, const char *hook,
55: struct in_addr *ips, struct in_addr *dns, struct in_addr *nbns,
56: u_int mtu)
57: {
58: return ((*manager->meth->bundle_plumb)(manager, bundle,
59: path, hook, ips, dns, nbns, mtu));
60: }
61:
62: void
63: ppp_manager_bundle_unplumb(struct ppp_manager *manager, void *arg,
64: struct ppp_bundle *bundle)
65: {
66: if (manager->meth->bundle_unplumb != NULL)
67: (*manager->meth->bundle_unplumb)(manager, arg, bundle);
68: }
69:
70: void
71: ppp_manager_release_ip(struct ppp_manager *manager,
72: struct ppp_bundle *bundle, struct in_addr ip)
73: {
74: if (manager->meth->release_ip != NULL)
75: (*manager->meth->release_ip)(manager, bundle, ip);
76: }
77:
78:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>