Lines Matching refs:ntohs

845 	ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4));
846 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
848 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
851 return (u_char *)ext + ntohs(e.len);
930 ND_PRINT((ndo," port=%d", ntohs(id.port)));
1113 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1114 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1116 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1119 return (u_char *)ext + ntohs(e.len);
1137 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1138 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1140 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1143 return (u_char *)ext + ntohs(e.len);
1163 ND_PRINT((ndo," n len=%d", ntohs(e.len) - 4));
1164 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1166 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1168 } else if (1 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1173 return (u_char *)ext + ntohs(e.len);
1246 if (ntohs(n.type) < 8192)
1247 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type))));
1248 else if (ntohs(n.type) < 16384)
1249 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1250 else if (ntohs(n.type) < 24576)
1251 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type))));
1253 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1264 if (ntohs(n.type) < 8192)
1265 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type))));
1266 else if (ntohs(n.type) < 16384)
1267 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_ERROR_STR(ntohs(n.type))));
1268 else if (ntohs(n.type) < 24576)
1269 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type))));
1270 else if (ntohs(n.type) < 32768)
1271 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_STATUS_STR(ntohs(n.type))));
1273 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1285 switch (ntohs(n.type)) {
1348 ND_PRINT((ndo," nspi=%u", ntohs(d.num_spi)));
1351 for (i = 0; i < ntohs(d.num_spi); i++) {
1377 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1378 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1380 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1383 return (u_char *)ext + ntohs(e.len);
1411 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1412 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1414 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1417 return (u_char *)ext + ntohs(e.len);
1443 t_id = ntohs(t.t_id);
1518 prop.num_t, ntohs(prop.h.len)));
1551 osa_length= ntohs(e.len);
1580 ND_PRINT((ndo," len=%u group=%s", ntohs(ke.h.len) - 8,
1581 STR_OR_ID(ntohs(ke.ke_group), dh_p_map)));
1583 if (2 < ndo->ndo_vflag && 8 < ntohs(ke.h.len)) {
1585 if (!rawprint(ndo, (caddr_t)(k + 1), ntohs(ke.h.len) - 8))
1588 return (u_char *)ext + ntohs(ke.h.len);
1610 id_len = ntohs(id.h.len);
1712 len = ntohs(a.h.len);
1745 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1746 if (1 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1748 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1751 } else if(ndo->ndo_vflag && 4 < ntohs(e.len)) {
1755 return (u_char *)ext + ntohs(e.len);
1788 type = ntohs(n.type);
1995 ND_PRINT((ndo," len=%d vid=", ntohs(e.len) - 4));
1998 len = ntohs(e.len) - 4;
2006 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
2009 return (u_char *)ext + ntohs(e.len);
2059 dlen = ntohs(e.len)-4;
2136 item_len = ntohs(e.len);
2173 ND_TCHECK2(*ext, ntohs(e.len));
2313 item_len = ntohs(e.len);
2363 ND_TCHECK2(*ext, ntohs(e.len));