Searched refs:packlen (Results 1 - 5 of 5) sorted by relevance

/macosx-10.10.1/network_cmds-457/traceroute.tproj/
H A Dtraceroute.c355 int packlen; /* total length of packet */ variable
700 packlen = minpacket; /* minimum sized packet */
706 packlen = str2val(argv[optind + 1],
733 protlen = packlen - sizeof(*outip) - optlen;
735 outip = (struct ip *)malloc((unsigned)packlen);
740 memset((char *)outip, 0, packlen);
746 outip->ip_len = htons(packlen);
749 outip->ip_len = packlen;
848 if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&packlen,
849 sizeof(packlen)) <
[all...]
/macosx-10.10.1/OpenSSH-189/openssh/
H A Dpacket.c183 u_int packlen; member in struct:session_state
1274 if (aadlen && active_state->packlen == 0) {
1278 active_state->packlen = get_u32(cp);
1279 if (active_state->packlen < 1 + 4 ||
1280 active_state->packlen > PACKET_MAX_SIZE) {
1284 logit("Bad packet length %u.", active_state->packlen);
1288 } else if (active_state->packlen == 0) {
1301 active_state->packlen = get_u32(cp);
1302 if (active_state->packlen < 1 + 4 ||
1303 active_state->packlen > PACKET_MAX_SIZ
[all...]
/macosx-10.10.1/network_cmds-457/rtadvd.tproj/
H A Dconfig.c1082 size_t packlen, lladdroptlen = 0; local
1094 packlen = sizeof(struct nd_router_advert);
1103 packlen += lladdroptlen;
1106 packlen += sizeof(struct nd_opt_prefix_info) * rainfo->pfxs;
1108 packlen += sizeof(struct nd_opt_mtu);
1111 packlen += sizeof(struct nd_opt_route_info) +
1115 packlen += 8 + sizeof(struct in6_addr) * rainfo->rdnss_length;
1118 packlen += rainfo->dnssl_option_length;
1122 if ((buf = malloc(packlen)) == NULL) {
1134 /* XXX: what if packlen > 57
[all...]
/macosx-10.10.1/network_cmds-457/rtsol.tproj/
H A Drtsold.c435 size_t packlen = sizeof(struct nd_router_solicit), lladdroptlen = 0; local
442 packlen += lladdroptlen;
443 ifinfo->rs_datalen = packlen;
446 if ((buf = malloc(packlen)) == NULL) {
/macosx-10.10.1/network_cmds-457/ping6.tproj/
H A Dping6.c343 int ch, hold, packlen, preload, optval, ret_ga; local
798 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA;
800 packlen = datalen + IP6LEN + ICMP6ECHOLEN + EXTRA;
805 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA;
808 if (!(packet = (u_char *)malloc((u_int)packlen)))
811 for (i = ICMP6ECHOLEN; i < packlen; ++i)
1312 iov[0].iov_len = packlen;

Completed in 198 milliseconds