summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2001-12-27 22:38:50 +0000
committerjoerg <joerg@FreeBSD.org>2001-12-27 22:38:50 +0000
commitd18dbbbe9a6140b0e0e68bd24def044457afccda (patch)
tree784972489714166508429d0b689c8f6ad90c4eec /sys/net/if_spppsubr.c
parent3664910955f376f0eedb94998600735c961c6eb0 (diff)
downloadFreeBSD-src-d18dbbbe9a6140b0e0e68bd24def044457afccda.zip
FreeBSD-src-d18dbbbe9a6140b0e0e68bd24def044457afccda.tar.gz
Break out the relevant fields from struct sppp into a struct
sppp_parms that are needed for the SPPPIO[GS]DEFS ioctl commands. This allows it to keep struct sppp inside #ifdef _KERNEL (where it belongs), and prevents userland programs that wish to include <net/if_sppp.h> from including the earth, the hell, and the universe before the are able to resolve all the kernel-internal stuff that's in struct sppp. Discussed with: hm MFC after: 1 month
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 85530ff..f28b1ad 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -4938,7 +4938,13 @@ sppp_params(struct sppp *sp, u_long cmd, void *data)
* called by any user. No need to ever get PAP or
* CHAP secrets back to userland anyway.
*/
- bcopy(sp, &spr.defs, sizeof(struct sppp));
+ spr.defs.pp_phase = sp->pp_phase;
+ spr.defs.enable_vj = sp->enable_vj;
+ spr.defs.lcp = sp->lcp;
+ spr.defs.ipcp = sp->ipcp;
+ spr.defs.ipv6cp = sp->ipv6cp;
+ spr.defs.myauth = sp->myauth;
+ spr.defs.hisauth = sp->hisauth;
bzero(spr.defs.myauth.secret, AUTHKEYLEN);
bzero(spr.defs.myauth.challenge, AUTHKEYLEN);
bzero(spr.defs.hisauth.secret, AUTHKEYLEN);
OpenPOWER on IntegriCloud