Lines Matching refs:bufp
936 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
946 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
947 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
948 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
950 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
951 *bufp++ = 0; in l2tp_build_l2tpv2_header()
957 return bufp - optr; in l2tp_build_l2tpv2_header()
963 char *bufp = buf; in l2tp_build_l2tpv3_header() local
964 char *optr = bufp; in l2tp_build_l2tpv3_header()
971 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header()
972 bufp += 2; in l2tp_build_l2tpv3_header()
973 *((__be16 *)bufp) = 0; in l2tp_build_l2tpv3_header()
974 bufp += 2; in l2tp_build_l2tpv3_header()
977 *((__be32 *)bufp) = htonl(session->peer_session_id); in l2tp_build_l2tpv3_header()
978 bufp += 4; in l2tp_build_l2tpv3_header()
980 memcpy(bufp, &session->cookie[0], session->cookie_len); in l2tp_build_l2tpv3_header()
981 bufp += session->cookie_len; in l2tp_build_l2tpv3_header()
993 *((__be32 *)bufp) = htonl(l2h); in l2tp_build_l2tpv3_header()
994 bufp += 4; in l2tp_build_l2tpv3_header()
997 return bufp - optr; in l2tp_build_l2tpv3_header()