summaryrefslogtreecommitdiff
path: root/net/pppd/patches/patch-ax
blob: 1bae7c6f7681e3c3669a01fdf5f0c12486479f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
$NetBSD: patch-ax,v 1.1.1.1 2005/01/02 02:51:42 cube Exp $

--- pppd/pppd.h.orig	2004-11-13 13:02:22.000000000 +0100
+++ pppd/pppd.h
@@ -213,7 +213,7 @@ struct notifier {
 extern int	hungup;		/* Physical layer has disconnected */
 extern int	ifunit;		/* Interface unit number */
 extern char	ifname[];	/* Interface name */
-extern char	hostname[];	/* Our hostname */
+extern char	hostname[MAXNAMELEN];	/* Our hostname */
 extern u_char	outpacket_buf[]; /* Buffer for outgoing packets */
 extern int	devfd;		/* fd of underlying device */
 extern int	fd_ppp;		/* fd for talking PPP */
@@ -336,8 +336,13 @@ extern int       maxoctets_timeout;  /* 
 #endif
 
 #ifdef PPP_FILTER
-extern struct	bpf_program pass_filter;   /* Filter for pkts to pass */
-extern struct	bpf_program active_filter; /* Filter for link-active pkts */
+/* Filter for packets to pass */
+extern struct	bpf_program pass_filter_in;
+extern struct	bpf_program pass_filter_out;
+
+/* Filter for link-active packets */
+extern struct	bpf_program active_filter_in;
+extern struct	bpf_program active_filter_out;
 #endif
 
 #ifdef MSLANMAN
@@ -506,8 +511,10 @@ void print_string __P((char *, int,  voi
 		void *));	/* Format a string for output */
 int slprintf __P((char *, int, char *, ...));		/* sprintf++ */
 int vslprintf __P((char *, int, char *, va_list));	/* vsprintf++ */
+#ifndef HAS_STRLFUNCS
 size_t strlcpy __P((char *, const char *, size_t));	/* safe strcpy */
 size_t strlcat __P((char *, const char *, size_t));	/* safe strncpy */
+#endif
 void dbglog __P((char *, ...));	/* log a debug message */
 void info __P((char *, ...));	/* log an informational message */
 void notice __P((char *, ...));	/* log a notice-level message */
@@ -657,7 +664,8 @@ void logwtmp __P((const char *, const ch
 int  get_host_seed __P((void));	/* Get host-dependent random number seed */
 int  have_route_to __P((u_int32_t)); /* Check if route to addr exists */
 #ifdef PPP_FILTER
-int  set_filters __P((struct bpf_program *pass, struct bpf_program *active));
+int  set_filters __P((struct bpf_program *pass_in, struct bpf_program *pass_out,
+	struct bpf_program *active_in, struct bpf_program *active_out));
 				/* Set filter programs in kernel */
 #endif
 #ifdef IPX_CHANGE
@@ -709,6 +717,10 @@ extern int (*allowed_address_hook) __P((
 extern void (*ip_up_hook) __P((void));
 extern void (*ip_down_hook) __P((void));
 extern void (*ip_choose_hook) __P((u_int32_t *));
+void (*lcp_up_hook) __P((void));
+void (*lcp_down_hook) __P((void));
+void (*lcp_echo_hook) __P((int));
+void (*lcp_echoreply_hook) __P((int));
 
 extern int (*chap_check_hook) __P((void));
 extern int (*chap_passwd_hook) __P((char *user, char *passwd));