diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-12-15 12:32:40 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-12-15 12:32:40 +0000 |
| commit | fe30e08ac736cc655f9eb0cd793113eda0b497c0 (patch) | |
| tree | 91c0e722162bbecca7dc2e90de79eed89e95faef /sys/netgraph | |
| parent | a076e2060c07307e7416759075db71f23de722c0 (diff) | |
Diffstat (limited to 'sys/netgraph')
| -rw-r--r-- | sys/netgraph/ng_pppoe.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 295a136cc554..a18d6a0498a7 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -1462,8 +1462,6 @@ ng_pppoe_rcvdata(hook_p hook, item_p item) struct mbuf *m0; const struct pppoe_hdr *ph; negp neg = sp->neg; - uint16_t session; - uint16_t length; uint8_t code; /* @@ -1478,8 +1476,6 @@ ng_pppoe_rcvdata(hook_p hook, item_p item) } wh = mtod(m, struct pppoe_full_hdr *); ph = &wh->ph; - session = ntohs(wh->ph.sid); - length = ntohs(wh->ph.length); code = wh->ph.code; /* Use peers mode in session. */ neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; @@ -1569,7 +1565,6 @@ ng_pppoe_rcvdata_ether(hook_p hook, item_p item) struct mbuf *m; hook_p sendhook; int error = 0; - uint16_t session; uint16_t length; uint8_t code; struct mbuf *m0; @@ -1639,7 +1634,6 @@ ng_pppoe_rcvdata_ether(hook_p hook, item_p item) wh = mtod(m, struct pppoe_full_hdr *); length = ntohs(wh->ph.length); ph = &wh->ph; - session = ntohs(wh->ph.sid); code = wh->ph.code; switch(code) { |
