ng_pppoe.c (cfbcfe62723b6cc4e876df6cd7232760db1c95bb) | ng_pppoe.c (bef9dae05a72866e79d97d9bff3fc5a2538b4421) |
---|---|
1#define SIGNOFF "session closed" 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 --- 1130 unchanged lines hidden (view full) --- 1139 } 1140 case PPPOE_PRIMED: 1141 /* 1142 * A PADI packet is being returned by the application 1143 * that has set up this hook. This indicates that it 1144 * wants us to offer service. 1145 */ 1146 neg = sp->neg; | 1#define SIGNOFF "session closed" 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 --- 1130 unchanged lines hidden (view full) --- 1139 } 1140 case PPPOE_PRIMED: 1141 /* 1142 * A PADI packet is being returned by the application 1143 * that has set up this hook. This indicates that it 1144 * wants us to offer service. 1145 */ 1146 neg = sp->neg; |
1147 m_pullup(m, sizeof(*wh)); /* Checks length */ | 1147 if (m->m_len < sizeof(*wh)) 1148 m_pullup(m, sizeof(*wh)); |
1148 if (m == NULL) { 1149 LEAVE(ENOBUFS); 1150 } 1151 wh = mtod(m, struct pppoe_full_hdr *); 1152 ph = &wh->ph; 1153 session = ntohs(wh->ph.sid); 1154 length = ntohs(wh->ph.length); 1155 code = wh->ph.code; --- 316 unchanged lines hidden --- | 1149 if (m == NULL) { 1150 LEAVE(ENOBUFS); 1151 } 1152 wh = mtod(m, struct pppoe_full_hdr *); 1153 ph = &wh->ph; 1154 session = ntohs(wh->ph.sid); 1155 length = ntohs(wh->ph.length); 1156 code = wh->ph.code; --- 316 unchanged lines hidden --- |