require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETINET_UDP_VAR_H_)) {
    eval 'sub _NETINET_UDP_VAR_H_ () {1;}' unless defined(&_NETINET_UDP_VAR_H_);
    eval 'sub ui_x1 () { ($ui_i->{ih_x1});}' unless defined(&ui_x1);
    eval 'sub ui_pr () { ($ui_i->{ih_pr});}' unless defined(&ui_pr);
    eval 'sub ui_len () { ($ui_i->{ih_len});}' unless defined(&ui_len);
    eval 'sub ui_src () { ($ui_i->{ih_src});}' unless defined(&ui_src);
    eval 'sub ui_dst () { ($ui_i->{ih_dst});}' unless defined(&ui_dst);
    eval 'sub ui_sport () { ($ui_u->{uh_sport});}' unless defined(&ui_sport);
    eval 'sub ui_dport () { ($ui_u->{uh_dport});}' unless defined(&ui_dport);
    eval 'sub ui_ulen () { ($ui_u->{uh_ulen});}' unless defined(&ui_ulen);
    eval 'sub ui_sum () { ($ui_u->{uh_sum});}' unless defined(&ui_sum);
    eval 'sub UDPCTL_CHECKSUM () {1;}' unless defined(&UDPCTL_CHECKSUM);
    eval 'sub UDPCTL_BADDYNAMIC () {2;}' unless defined(&UDPCTL_BADDYNAMIC);
    eval 'sub UDPCTL_RECVSPACE () {3;}' unless defined(&UDPCTL_RECVSPACE);
    eval 'sub UDPCTL_SENDSPACE () {4;}' unless defined(&UDPCTL_SENDSPACE);
    eval 'sub UDPCTL_MAXID () {5;}' unless defined(&UDPCTL_MAXID);
    eval 'sub UDPCTL_NAMES () {{ { 0, 0}, { "checksum",  &CTLTYPE_INT }, { "baddynamic",  &CTLTYPE_STRUCT }, { "recvspace",  &CTLTYPE_INT }, { "sendspace",  &CTLTYPE_INT }, };}' unless defined(&UDPCTL_NAMES);
    eval 'sub UDPCTL_VARS () {{  &NULL,  &udpcksum,  &NULL,  &udp_recvspace,  &udp_sendspace, };}' unless defined(&UDPCTL_VARS);
    if(defined(&_KERNEL)) {
	if(defined( &INET6)  && !defined( &TCP6)) {
	}
	if(defined(&INET6)) {
	}
    }
}
1;
