Deleted Added
full compact
ether.c (82277) ether.c (90975)
1/*-
2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/usr.sbin/ppp/ether.c 82277 2001-08-24 14:53:41Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/ether.c 90975 2002-02-20 15:52:20Z brian $
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <sys/un.h>
32#include <netinet/in.h>
33#include <arpa/inet.h>
34#include <netdb.h>

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

249 case NGM_PPPOE_SET_FLAG: msg = "SET_FLAG"; break;
250 case NGM_PPPOE_CONNECT: msg = "CONNECT"; break;
251 case NGM_PPPOE_LISTEN: msg = "LISTEN"; break;
252 case NGM_PPPOE_OFFER: msg = "OFFER"; break;
253 case NGM_PPPOE_SUCCESS: msg = "SUCCESS"; break;
254 case NGM_PPPOE_FAIL: msg = "FAIL"; break;
255 case NGM_PPPOE_CLOSE: msg = "CLOSE"; break;
256 case NGM_PPPOE_GET_STATUS: msg = "GET_STATUS"; break;
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <sys/un.h>
32#include <netinet/in.h>
33#include <arpa/inet.h>
34#include <netdb.h>

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

249 case NGM_PPPOE_SET_FLAG: msg = "SET_FLAG"; break;
250 case NGM_PPPOE_CONNECT: msg = "CONNECT"; break;
251 case NGM_PPPOE_LISTEN: msg = "LISTEN"; break;
252 case NGM_PPPOE_OFFER: msg = "OFFER"; break;
253 case NGM_PPPOE_SUCCESS: msg = "SUCCESS"; break;
254 case NGM_PPPOE_FAIL: msg = "FAIL"; break;
255 case NGM_PPPOE_CLOSE: msg = "CLOSE"; break;
256 case NGM_PPPOE_GET_STATUS: msg = "GET_STATUS"; break;
257 case NGM_PPPOE_ACNAME:
258 msg = "ACNAME";
259 if (setenv("ACNAME", sts->hook, 1) != 0)
260 log_Printf(LogWARN, "setenv: cannot set ACNAME=%s: %m", sts->hook);
261 break;
257 default:
258 snprintf(unknown, sizeof unknown, "<%d>", (int)rep->header.cmd);
259 msg = unknown;
260 break;
261 }
262
263 log_Printf(LogPHASE, "Received NGM_PPPOE_%s (hook \"%s\")\n", msg, sts->hook);
264

--- 428 unchanged lines hidden ---
262 default:
263 snprintf(unknown, sizeof unknown, "<%d>", (int)rep->header.cmd);
264 msg = unknown;
265 break;
266 }
267
268 log_Printf(LogPHASE, "Received NGM_PPPOE_%s (hook \"%s\")\n", msg, sts->hook);
269

--- 428 unchanged lines hidden ---