ng_pppoe.c (9088fa05ae18319d894d4bc5af8f5d5cc5b5006b) ng_pppoe.c (2b5dcd2ffe73e5f6e2c749af2efb07cba3cfe75c)
1
2/*
3 * ng_pppoe.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

863 * it can be needed if the negotiation times out.
864 */
865static void
866pppoe_start(sessp sp)
867{
868 struct {
869 struct pppoe_tag hdr;
870 union uniq data;
1
2/*
3 * ng_pppoe.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

863 * it can be needed if the negotiation times out.
864 */
865static void
866pppoe_start(sessp sp)
867{
868 struct {
869 struct pppoe_tag hdr;
870 union uniq data;
871 } uniqtag;
871 } __attribute ((packed)) uniqtag;
872
873 /*
874 * kick the state machine into starting up
875 */
876AAA
877 sp->state = PPPOE_SINIT;
878 /* reset the packet header to broadcast */
879 sp->neg->pkt->pkt_header.eh = eh_prototype;

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

905 u_int16_t session;
906 u_int16_t length;
907 u_int8_t code;
908 struct pppoe_tag *utag = NULL, *tag = NULL;
909 hook_p sendhook;
910 struct {
911 struct pppoe_tag hdr;
912 union uniq data;
872
873 /*
874 * kick the state machine into starting up
875 */
876AAA
877 sp->state = PPPOE_SINIT;
878 /* reset the packet header to broadcast */
879 sp->neg->pkt->pkt_header.eh = eh_prototype;

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

905 u_int16_t session;
906 u_int16_t length;
907 u_int8_t code;
908 struct pppoe_tag *utag = NULL, *tag = NULL;
909 hook_p sendhook;
910 struct {
911 struct pppoe_tag hdr;
912 union uniq data;
913 } uniqtag;
913 } __attribute ((packed)) uniqtag;
914 negp neg = NULL;
915 struct mbuf *m;
916
917AAA
918 NGI_GET_M(item, m);
919 if (NG_HOOK_PRIVATE(hook) == &privp->debug_hook) {
920 /*
921 * Data from the debug hook gets sent without modification

--- 777 unchanged lines hidden ---
914 negp neg = NULL;
915 struct mbuf *m;
916
917AAA
918 NGI_GET_M(item, m);
919 if (NG_HOOK_PRIVATE(hook) == &privp->debug_hook) {
920 /*
921 * Data from the debug hook gets sent without modification

--- 777 unchanged lines hidden ---