Home
last modified time | relevance | path

Searched refs:hulen (Results 1 – 1 of 1) sorted by relevance

/f-stack/freebsd/netgraph/
H A Dng_pppoe.c924 int hupos, hulen = 0, husep = 0; in ng_pppoe_rcvmsg() local
937 hulen = i - hupos; in ng_pppoe_rcvmsg()
942 srvpos = hupos + hulen + husep; in ng_pppoe_rcvmsg()
949 if (hulen == 0) { in ng_pppoe_rcvmsg()
954 } else if (hulen > 2 && ourmsg->data[hupos] == '0' && in ng_pppoe_rcvmsg()
955 ourmsg->data[hupos + 1] == 'x' && hulen % 2 == 0) { in ng_pppoe_rcvmsg()
961 for (i = 0; i < hulen - 2; i++) { in ng_pppoe_rcvmsg()
973 neg->host_uniq_len = hulen / 2 - 1; in ng_pppoe_rcvmsg()
976 neg->host_uniq.hdr.tag_len = htons((uint16_t)hulen); in ng_pppoe_rcvmsg()
977 bcopy(ourmsg->data + hupos, neg->host_uniq.data, hulen); in ng_pppoe_rcvmsg()
[all …]