@@ -666,14 +666,14 @@ static const u8 ic_bootp_cookie[4] = { 99, 130, 83, 99 };
666
666
#ifdef IPCONFIG_DHCP
667
667
668
668
static void __init
669
- ic_dhcp_init_options (u8 * options )
669
+ ic_dhcp_init_options (u8 * options , struct ic_device * d )
670
670
{
671
671
u8 mt = ((ic_servaddr == NONE )
672
672
? DHCPDISCOVER : DHCPREQUEST );
673
673
u8 * e = options ;
674
674
int len ;
675
675
676
- pr_debug ("DHCP: Sending message type %d\n" , mt );
676
+ pr_debug ("DHCP: Sending message type %d (%s) \n" , mt , d -> dev -> name );
677
677
678
678
memcpy (e , ic_bootp_cookie , 4 ); /* RFC1048 Magic Cookie */
679
679
e += 4 ;
@@ -857,7 +857,7 @@ static void __init ic_bootp_send_if(struct ic_device *d, unsigned long jiffies_d
857
857
/* add DHCP options or BOOTP extensions */
858
858
#ifdef IPCONFIG_DHCP
859
859
if (ic_proto_enabled & IC_USE_DHCP )
860
- ic_dhcp_init_options (b -> exten );
860
+ ic_dhcp_init_options (b -> exten , d );
861
861
else
862
862
#endif
863
863
ic_bootp_init_ext (b -> exten );
@@ -1033,8 +1033,8 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str
1033
1033
/* Is it a reply to our BOOTP request? */
1034
1034
if (b -> op != BOOTP_REPLY ||
1035
1035
b -> xid != d -> xid ) {
1036
- net_err_ratelimited ("DHCP/BOOTP: Reply not for us, op[%x] xid[%x]\n" ,
1037
- b -> op , b -> xid );
1036
+ net_err_ratelimited ("DHCP/BOOTP: Reply not for us on %s , op[%x] xid[%x]\n" ,
1037
+ d -> dev -> name , b -> op , b -> xid );
1038
1038
goto drop_unlock ;
1039
1039
}
1040
1040
@@ -1075,7 +1075,7 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str
1075
1075
}
1076
1076
}
1077
1077
1078
- pr_debug ("DHCP: Got message type %d\n" , mt );
1078
+ pr_debug ("DHCP: Got message type %d (%s) \n" , mt , d -> dev -> name );
1079
1079
1080
1080
switch (mt ) {
1081
1081
case DHCPOFFER :
0 commit comments