Lines Matching refs:bufp
928 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
938 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
939 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
940 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
942 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
943 *bufp++ = 0; in l2tp_build_l2tpv2_header()
949 return bufp - optr; in l2tp_build_l2tpv2_header()
955 char *bufp = buf; in l2tp_build_l2tpv3_header() local
956 char *optr = bufp; in l2tp_build_l2tpv3_header()
963 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header()
964 bufp += 2; in l2tp_build_l2tpv3_header()
965 *((__be16 *)bufp) = 0; in l2tp_build_l2tpv3_header()
966 bufp += 2; in l2tp_build_l2tpv3_header()
969 *((__be32 *)bufp) = htonl(session->peer_session_id); in l2tp_build_l2tpv3_header()
970 bufp += 4; in l2tp_build_l2tpv3_header()
972 memcpy(bufp, &session->cookie[0], session->cookie_len); in l2tp_build_l2tpv3_header()
973 bufp += session->cookie_len; in l2tp_build_l2tpv3_header()
985 *((__be32 *)bufp) = htonl(l2h); in l2tp_build_l2tpv3_header()
986 bufp += 4; in l2tp_build_l2tpv3_header()
989 return bufp - optr; in l2tp_build_l2tpv3_header()