Lines Matching refs:ncm
23 static void nss_tunipip6_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data)
25 struct nss_tunipip6_msg *ntm = (struct nss_tunipip6_msg *)ncm;
29 BUG_ON(ncm->interface != NSS_TUNIPIP6_INTERFACE);
33 if (ncm->type >= NSS_TUNIPIP6_MAX) {
34 nss_warning("%p: received invalid message %d for DS-Lite interface", nss_ctx, ncm->type);
38 if (ncm->len > sizeof(struct nss_tunipip6_msg)) {
39 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
47 if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
48 ncm->cb = (uint32_t)nss_ctx->nss_top->tunipip6_msg_callback;
54 nss_core_log_msg_failures(nss_ctx, ncm);
59 if (!ncm->cb) {
66 cb = (nss_tunipip6_msg_callback_t)ncm->cb;
67 ctx = nss_ctx->nss_top->subsys_dp_register[ncm->interface].ndev;
73 nss_warning("%p: Event received for DS-Lite tunnel interface %d before registration", nss_ctx, ncm->interface);
87 struct nss_cmn_msg *ncm = &msg->cm;
100 if (ncm->interface != NSS_TUNIPIP6_INTERFACE) {
101 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
105 if (ncm->type > NSS_TUNIPIP6_MAX) {
106 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
110 if (ncm->len > sizeof(struct nss_tunipip6_msg)) {
111 nss_warning("%p: message length is invalid: %d", nss_ctx, ncm->len);