iphdr
return (iphdr(addr, flags, argc, argv));
{ "iphdr", ":[-vf]", "display an IPv4 header", iphdr },
static int iphdr(uintptr_t, uint_t, int, const mdb_arg_t *);
Phdr *iphdr = NULL;
iphdr = getphdr(phnum, phdr_types,
if (iphdr == NULL)
(iphdr->p_offset < shdr->sh_offset) ||
(iphdr->p_offset + iphdr->p_filesz) >
(iphdr->p_offset - ishdr->sh_offset));
check_phdr_v_shdr(iphdr, phndx, ELFOSABI_SOLARIS,
Phdr *iphdr, *ophdr, *data_phdr = 0;
if ((iphdr = elf_getphdr(ielf)) == NULL) {
for (num = 0, ophdr = iphdr; num != iehdr->e_phnum; num++, ophdr++) {
for (num = 0; num != iehdr->e_phnum; num++, iphdr++, ophdr++) {
*ophdr = *iphdr;
if (data_phdr == iphdr) {
struct iphdr ip;
struct iphdr ip;
unsigned short ptype __unused, struct iphdr *ip,
typedef int (*reply_t)(int ival, void *ptr, unsigned short ptype, struct iphdr *ip, struct udphdr *udp);
struct iphdr ip;
struct iphdr ip;
unsigned short ptype, struct iphdr *ip __unused, struct udphdr *udp __unused)
struct iphdr *ip;
ip = (struct iphdr *)buf;
struct iphdr *ip;
ip = (struct iphdr *)buf;
ip->chksum = ipchksum(buf, sizeof(struct iphdr) + option_len);
static uint16_t udpchksum(struct iphdr *ip, struct udphdr *udp)
struct iphdr *ip;
ip = (struct iphdr *)buf;
udp = (struct udphdr *)((char *)buf + sizeof(struct iphdr));
udp->len = htons(len - sizeof(struct iphdr));
struct iphdr *ip __unused, struct udphdr *udp __unused)
struct iphdr *ip, struct udphdr *udp)
unsigned short ptype __unused, struct iphdr *ip __unused,
&nic.packet[ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr)];
len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) +
unsigned short ptype __unused, struct iphdr *ip __unused,
&nic.packet[ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr)];
len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) +
static void process_igmp(struct iphdr *ip, unsigned long now)
(nic.packetlen < sizeof(struct iphdr) + sizeof(struct igmp))) {
igmp = (struct igmp *)&nic.packet[sizeof(struct iphdr)];
struct iphdr *ip;
if ((ptype == IP) && (nic.packetlen >= ETH_HLEN + sizeof(struct iphdr))) {
ip = (struct iphdr *)&nic.packet[ETH_HLEN];
ipoptlen = iplen - sizeof(struct iphdr);
memmove(&nic.packet[ETH_HLEN + sizeof(struct iphdr)],
(nic.packetlen >= ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr))) {
udp = (struct udphdr *)&nic.packet[ETH_HLEN + sizeof(struct iphdr)];
struct iphdr ip;
struct iphdr ip;
#define TFTP_MIN_PACKET (sizeof(struct iphdr) + sizeof(struct udphdr) + 4)
(ipha_t *)iphdr, tcpha, ipst);
(ip6_t *)iphdr, tcpha, ipst);
tcp_fuse(tcp_t *tcp, uchar_t *iphdr, tcpha_t *tcpha)
uchar_t *iphdr;
iphdr = mp->b_rptr;
iphdr = mp->b_rptr;
__dtrace_tcp_void_ip_t *, iphdr, tcp_t *, tcp,
iphdr = rptr = mp->b_rptr;
void_ip_t *, iphdr, tcp_t *, tcp,
if (!tcp_conn_con(tcp, iphdr, mp,
void_ip_t *, iphdr, tcp_t *, tcp, tcph_t *, tcpha);
mp->b_rptr = iphdr;
if (!tcp_conn_con(tcp, iphdr, mp, NULL, ira)) {
iphdr, tcp_t *, tcp, tcph_t *, tcpha);
iphdr, tcp_t *, tcp, tcph_t *, tcpha);
iphdr, tcp_t *, tcp, tcph_t *, tcpha);
tcp_fuse(tcp, iphdr, tcpha);
tcp_conn_con(tcp_t *tcp, uchar_t *iphdr, mblk_t *idmp,
if (IPH_HDR_VERSION(iphdr) == IPV4_VERSION) {
ip6_t *ip6h = (ip6_t *)iphdr;
ASSERT(IPH_HDR_VERSION(iphdr) == IPV6_VERSION);
struct ip *iphdr = NULL;
iphdr = (struct ip *)(void *)(bp+mac_hdr_len);
if (iphdr != NULL) {
ip_hdr_len = IPH_HDR_LENGTH(iphdr);
iphdr->ip_sum = 0;
if (iphdr->ip_p == IPPROTO_TCP) {
((uint8_t *)(void *)iphdr + ip_hdr_len);
iphdr->ip_sum = 0;
ql_pseudo_cksum((uint8_t *)iphdr);
} else if (iphdr->ip_p == IPPROTO_UDP) {
iphdr->ip_sum = 0;
ql_pseudo_cksum((uint8_t *)iphdr);
struct ip *iphdr = NULL;
iphdr = (struct ip *)(void *)(bp+mac_hdr_len);
if (((unsigned long)iphdr) & 0x3) {
if (iphdr) {
ip_hdr_len = IPH_HDR_LENGTH(iphdr);
ip_src_addr = iphdr->ip_src.s_addr;
ip_desc_addr = iphdr->ip_dst.s_addr;
if (iphdr->ip_p == IPPROTO_TCP) {
((uint8_t *)iphdr + ip_hdr_len);
} else if (iphdr->ip_p == IPPROTO_UDP) {
((uint8_t *)iphdr + ip_hdr_len);
struct ip *iphdr = NULL;
iphdr = (struct ip *)(void *)(bp+mac_hdr_len);
if (iphdr != NULL) { /* ipV4 packets */
ip_hdr_len = (uint16_t)IPH_HDR_LENGTH(iphdr);
if (iphdr->ip_p == IPPROTO_TCP) {
((uint8_t *)(void *)iphdr +
iphdr->ip_sum = 0;
ql_lso_pseudo_cksum((uint8_t *)iphdr);
} else if (iphdr->ip_p == IPPROTO_UDP) {
((uint8_t *)(void *)iphdr
iphdr->ip_sum = 0;
ql_lso_pseudo_cksum((uint8_t *)iphdr);
ipha_t *iphdr;
iphdr = (ipha_t *)(buf->ub_buffer + hdrlen);
len = hdrlen + BE_16(iphdr->ipha_length);
uchar_t *iphdr;
&cp->cp_vj, &iphdr, &iphlen);
bcopy((caddr_t)iphdr, (caddr_t)dp + PPP_HDRLEN, iphlen);
struct ip *iphdr = NULL;
iphdr = (struct ip *)(void *)(bp+mac_hdr_len);
if (((unsigned long)iphdr) & 0x3) {
if (iphdr) {
ip_hdr_len = IPH_HDR_LENGTH(iphdr);
ip_src_addr = iphdr->ip_src.s_addr;
ip_desc_addr = iphdr->ip_dst.s_addr;
if (iphdr->ip_p == IPPROTO_TCP) {
((uint8_t *)iphdr + ip_hdr_len);
} else if (iphdr->ip_p == IPPROTO_UDP) {
((uint8_t *)iphdr + ip_hdr_len);