Home | History | Annotate | Download | only in tcpdump

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)));
1116 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1117 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1119 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1122 return (u_char *)ext + ntohs(e.len);
1140 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1141 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1143 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1146 return (u_char *)ext + ntohs(e.len);
1166 ND_PRINT((ndo," n len=%d", ntohs(e.len) - 4));
1167 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1169 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1171 } else if (1 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1176 return (u_char *)ext + ntohs(e.len);
1249 if (ntohs(n.type) < 8192)
1250 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type))));
1251 else if (ntohs(n.type) < 16384)
1252 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1253 else if (ntohs(n.type) < 24576)
1254 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type))));
1256 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1267 if (ntohs(n.type) < 8192)
1268 ND_PRINT((ndo," type=%s", NOTIFY_ERROR_STR(ntohs(n.type))));
1269 else if (ntohs(n.type) < 16384)
1270 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_ERROR_STR(ntohs(n.type))));
1271 else if (ntohs(n.type) < 24576)
1272 ND_PRINT((ndo," type=%s", NOTIFY_STATUS_STR(ntohs(n.type))));
1273 else if (ntohs(n.type) < 32768)
1274 ND_PRINT((ndo," type=%s", IPSEC_NOTIFY_STATUS_STR(ntohs(n.type))));
1276 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type))));
1288 switch (ntohs(n.type)) {
1351 ND_PRINT((ndo," nspi=%u", ntohs(d.num_spi)));
1354 for (i = 0; i < ntohs(d.num_spi); i++) {
1380 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1381 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1383 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1386 return (u_char *)ext + ntohs(e.len);
1414 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1415 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1417 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1420 return (u_char *)ext + ntohs(e.len);
1446 t_id = ntohs(t.t_id);
1521 prop.num_t, ntohs(prop.h.len)));
1554 osa_length= ntohs(e.len);
1583 ND_PRINT((ndo," len=%u group=%s", ntohs(ke.h.len) - 8,
1584 STR_OR_ID(ntohs(ke.ke_group), dh_p_map)));
1586 if (2 < ndo->ndo_vflag && 8 < ntohs(ke.h.len)) {
1588 if (!rawprint(ndo, (caddr_t)(k + 1), ntohs(ke.h.len) - 8))
1591 return (u_char *)ext + ntohs(ke.h.len);
1613 id_len = ntohs(id.h.len);
1715 len = ntohs(a.h.len);
1748 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1749 if (1 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1751 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1754 } else if(ndo->ndo_vflag && 4 < ntohs(e.len)) {
1758 return (u_char *)ext + ntohs(e.len);
1790 type = ntohs(n.type);
1996 ND_PRINT((ndo," len=%d vid=", ntohs(e.len) - 4));
1999 len = ntohs(e.len) - 4;
2007 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
2010 return (u_char *)ext + ntohs(e.len);
2060 dlen = ntohs(e.len)-4;
2137 item_len = ntohs(e.len);
2174 ND_TCHECK2(*ext, ntohs(e.len));
2301 item_len = ntohs(e.len);
2351 ND_TCHECK2(*ext, ntohs(e.len));